import java.awt.Color;
import sun.audio.*;
import java.awt.event.*;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import sun.audio.*;
import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.WindowConstants;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;

import java.awt.event.*;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Random;

public class GUI extends Thread implements ActionListener {
	private MonopolyBoard board;
	private Players[] players;
	private Tiles[] tile;
	private Deeds[] deeds;
	private PropertyEvent property;
	public GUI(MonopolyBoard board, Tiles[] tile,Deeds[] deeds) {
		this.board = board;
		this.tile = tile;
		this.deeds = deeds;
	}

	Dice dice = new Dice();
	private int turn = 0;

	// gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//gui//

	Random generator = new Random();
	Thread[] t1 = new Thread[1000];
	private int sellPro,dice1, dice2, dicechecker = 0, numberOfPlayers, checker1, threadCounter = 0;
	private int TokenLabelturn = 1, totalDice;
	private int playerToken = 1;
	private JButton cheat1,dobolroll,hotel,house,unmortgage,trade, pay,useGetOut,sell,MedSmall,ShortLineSmall,WWSmall,BORRSmall,PensRRSmall,ElecCompSmall,RRSmall,OkButSmall,VermontAveSmall,ConneticutAveSmall,CharlseSmall,StatesAveSmall,VirginiaAveSmall,JamesSmall,TennesseAveSmall,NewYorkAveSmall,KentuckyAveSmall,IndianaAveSmall,IllinoisAveSmall,AtlanticAveSmall,VentorAveSmall,MarvinGardensSmall,PacificAveSmall,NthCaroSmall,PensAveSmall,ParkPlaceSmall,BoardWalkSmall,OrientalAveSmall, BalticAveSmall,ShortLine,WW,BORR,PensRR,ElecComp,RR,OkBut,VermontAve,ConneticutAve,Charlse,StatesAve,VirginiaAve,James,TennesseAve,NewYorkAve,KentuckyAve,IndianaAve,IllinoisAve,AtlanticAve,VentorAve,MarvinGardens,PacificAve,NthCaro,PensAve,ParkPlace,BoardWalk,OrientalAve, BalticAve,MedAve,BuyTittle, continueButt, rollDice, rollDiceOk, testbut,
			multibut, chooseTokenBut, twoPlayer, threePlayer, fourPlayer,
			fivePlayer, sixPlayer, sevenPlayer, eightPlayer;
	private JFrame frames,gameBoard, frame, testmodeFrame;
	JButton button;
	private JRadioButton car, hat, dog, shoe, ship, lagayanbato, plancha, bell;
	private JLabel label,MrMonopoly,Com1,Com2,Com3,Com4,Com5,Com6,Com7,Com8,Com9,Com10,Com11,Com12,Com13,Com14,Com15,Com16,Chance1,Chance2,Chance3,Chance4,Chance5,Chance6,Chance7,Chance8,Chance9,Chance10,Chance11,Chance12,Chance13,Chance14,Chance15,Chance16,Chance17,ShortLineCard,WWCard,BORRCard,PensRRCard,ElecCompCard,RRCard,VermontAveCard,ConneticutAveCard,CharlseCard,StatesAveCard,VirginiaAveCard,JamesCard,TennesseAveCard,NewYorkAveCard,KentuckyAveCard,IndianaAveCard,IllinoisAveCard,AtlanticAveCard,VentorAveCard,MarvinGardenCard,PacificAvecard,NthCaroCard,PensAvecard,ParkPlacecard,BoardWalkcard,OrientalAvecard, BalticAvecard,MedAveCard,Sorry,Owner,Name,Card,diceLabel2, diceLabel, Player, moneyLabel, carLabel,
			hatLabel, dogLabel, shoeLabel, shipLabel, lagayanbatoLabel,
			planchaLabel, bellLabel, chooseTokenLabel, carimageLabel,
			bellimageLabel, lagayanbatoimageLabel, shipimageLabel,
			shoeimageLabel, planchaimageLabel, dogimageLabel, hatimageLabel,
			carToken, bellToken, lagayanbatoToken, shipToken, shoeToken,
			planchaToken, Dice1A, dogToken, hatToken, Dice1B, Dice2A, Dice2B,
			Dice3A, Dice3B, Dice4A, Dice4B, Dice5A, Dice5B, Dice6A, Dice6B,
			Token, bellImageContainer, carImageContainer, hatImageContainer,
			dogImageContainer, shoeImageContainer, shipImageContainer,
			lagayanbatoImageContainer, planchaImageContainer;
	private JPanel panels;
	private ImagePanel panel2, panel1, panel3;

	// O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//
	public void updateProperty(int x){
		
		
		if(deeds[x].getGroup()==1){
			if(deeds[0].getOwner()!=deeds[1].getOwner()){
				deeds[0].notOwnGroup();
				deeds[1].notOwnGroup();
			}	
		}
		
		if(deeds[x].getGroup()==2){
			if(deeds[3].getOwner()!=deeds[4].getOwner()||deeds[3].getOwner()!=deeds[5].getOwner()||deeds[4].getOwner()!=deeds[5].getOwner()){
				deeds[3].notOwnGroup();
				deeds[4].notOwnGroup();
				deeds[5].notOwnGroup();
			}	
		}
		
		
		if(deeds[x].getGroup()==3){
			if(deeds[6].getOwner()!=deeds[8].getOwner()||deeds[6].getOwner()!=deeds[9].getOwner()||deeds[9].getOwner()!=deeds[8].getOwner()){
				deeds[6].notOwnGroup();
				deeds[9].notOwnGroup();
				deeds[8].notOwnGroup();
			}	
		}
		if(deeds[x].getGroup()==4){
			if(deeds[11].getOwner()!=deeds[12].getOwner()||deeds[11].getOwner()!=deeds[13].getOwner()||deeds[12].getOwner()!=deeds[13].getOwner()){
				deeds[11].notOwnGroup();
				deeds[12].notOwnGroup();
				deeds[13].notOwnGroup();
			}	
		}
		if(deeds[x].getGroup()==5){
			if(deeds[14].getOwner()!=deeds[15].getOwner()||deeds[14].getOwner()!=deeds[16].getOwner()||deeds[15].getOwner()!=deeds[16].getOwner()){
				deeds[14].notOwnGroup();
				deeds[15].notOwnGroup();
				deeds[16].notOwnGroup();
			}	
		}
		if(deeds[x].getGroup()==6){
			if(deeds[18].getOwner()!=deeds[19].getOwner()||deeds[18].getOwner()!=deeds[21].getOwner()||deeds[19].getOwner()!=deeds[21].getOwner()){
				deeds[18].notOwnGroup();
				deeds[19].notOwnGroup();
				deeds[21].notOwnGroup();
			}	
		}
		if(deeds[x].getGroup()==7){
			if(deeds[22].getOwner()!=deeds[23].getOwner()||deeds[22].getOwner()!=deeds[24].getOwner()||deeds[23].getOwner()!=deeds[24].getOwner()){
				deeds[22].notOwnGroup();
				deeds[23].notOwnGroup();
				deeds[24].notOwnGroup();
			}	
		}
		if(deeds[x].getGroup()==8){
			if(deeds[26].getOwner()!=deeds[27].getOwner()){
				deeds[26].notOwnGroup();
				deeds[27].notOwnGroup();
				
			}	
		}
	
		
		
		
		if(x==0){
			this.MedSmall.setVisible(false);
		}
		if(x==1){
			this.BalticAveSmall.setVisible(false);
		}
	if(x==2){
			this.RRSmall.setVisible(false);
		}
	if(x==3){
	this.OrientalAveSmall.setVisible(false);	
	}
	if(x==4){
		this.VermontAveSmall.setVisible(false);
	}
	if(x==5){
		this.ConneticutAveSmall.setVisible(false);
	}
	if(x==6){
		this.CharlseSmall.setVisible(false);
	}
	if(x==7){
		this.ElecCompSmall.setVisible(false);
	}
	if(x==8){
		this.StatesAveSmall.setVisible(false);
	}
	if(x==9){
		this.VirginiaAveSmall.setVisible(false);
	}
	if(x==10){
		this.PensRRSmall.setVisible(false);
	}
	if(x==11){
		this.JamesSmall.setVisible(false);
	}
	if(x==12){
		this.TennesseAveSmall.setVisible(false);
	}
	if(x==13){
		this.NewYorkAveSmall.setVisible(false);
	}	
	if(x==14){
		this.KentuckyAveSmall.setVisible(false);
	}
	if(x==15){
		this.IndianaAveCard.setVisible(false);
	}
	if(x==16){
		this.IllinoisAveSmall.setVisible(false);
	}
	if(x==17){
	this.BORRSmall.setVisible(false);
	}
	if(x==18){
		this.AtlanticAveSmall.setVisible(false);
	}
	if(x==19){
		this.VentorAveSmall.setVisible(false);
	}
	if(x==20){
		this.WWSmall.setVisible(false);
	}
	if(x==21){
		this.MarvinGardensSmall.setVisible(false);
	}
	if(x==22){
		this.PacificAveSmall.setVisible(false);
	}
	if(x==23){
		this.NthCaroSmall.setVisible(false);
	}
	if(x==24){
		this.PensAveSmall.setVisible(false);
	}
	if(x==25){
		this.ShortLineSmall.setVisible(false);
	}
	if(x==26){
		this.ParkPlaceSmall.setVisible(false);
	}
	if(x==27){
		this.BoardWalkSmall.setVisible(false);
	}
	}
	public void ShowCard(int x){
		
		gameBoard.setEnabled(false);
		panels = new JPanel();
		panels.setSize(500, 300);
		panels.setVisible(true);
		
		frames = new JFrame();
		frames.setBounds(200, 250, 500,300);
		frames.add(panels);
		frames.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE) ;
		
		if(deeds[x].getMortgage()==false){
		sell = new JButton();
		sell.setBounds(250, 150, 50, 50);
		sell.setVisible(true);
		sell.setText("Mortgage");
		panels.add(sell);
		sell.addActionListener(this);
		}else{
			this.unmortgage = new JButton();
			this.unmortgage.setBounds(250, 150, 50, 50);
			this.unmortgage.setVisible(true);
			this.unmortgage.setText("Unmort");
			panels.add(unmortgage);
			this.unmortgage.addActionListener(this);
		}
		
	     house = new JButton();
		house.setBounds(350, 150, 50, 50);
		house.setVisible(true);
		house.setText("BuildHouse");
		
		if(deeds[x].getOwnall()==true&&deeds[x].getHouse()!=4){
			house.setEnabled(true);
		}else{
			house.setEnabled(false);
		}
		house.addActionListener(this);
		panels.add(house);
		
		hotel = new JButton();
		hotel.setBounds(450, 150, 50, 50);
		hotel.setVisible(true);
		if(deeds[x].getHouse()==4){
			hotel.setEnabled(true);
		}else{
			hotel.setEnabled(false);
		}
		hotel.setText("BuildHotel");
		
		if(deeds[x].getHouse()==4&&deeds[x].getHotel()!=1){
			house.setEnabled(true);
		}else{
			house.setEnabled(false);
		}
		hotel.addActionListener(this);
		panels.add(hotel);
		
		button = new JButton();
		button.setBounds(150, 150, 30, 50);
		button.setVisible(true);
		button.setText("Cancel");
		panels.add(button);
		button.addActionListener(this);
		if(x==0){
			this.sellPro=0;
			ImageIcon img = new ImageIcon("Deeds/MedAve.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);	
		}
		if(x==1){
			this.sellPro=1;
		ImageIcon img = new ImageIcon("Deeds/BalticAve.jpg");
		label = new JLabel(img);
		label.setBounds(0, 0, 179, 300);
		label.setVisible(true);
		panels.add(label);
		}
		if(x==2){
			this.sellPro=2;
		ImageIcon img = new ImageIcon("Deeds/RR.jpg");
		label = new JLabel(img);
		label.setBounds(0, 0, 179, 300);
		label.setVisible(true);
		panels.add(label);
		}
		if(x==3){
			this.sellPro=3;
			ImageIcon img = new ImageIcon("Deeds/Oriental.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==4){
			this.sellPro=4;
			ImageIcon img = new ImageIcon("Deeds/Vermont.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==5){
			this.sellPro=5;
			ImageIcon img = new ImageIcon("Deeds/Conn.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==6){
			System.out.println("asd");
			this.sellPro=6;
			ImageIcon img = new ImageIcon("Deeds/Charlse.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==7){
			this.sellPro=7;
			ImageIcon img = new ImageIcon("Deeds/Electric.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==8){
			this.sellPro=8;
			ImageIcon img = new ImageIcon("Deeds/StatesAve.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==9){
			this.sellPro=9;
			ImageIcon img = new ImageIcon("Deeds/Virginia.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==10){
			this.sellPro=10;
			ImageIcon img = new ImageIcon("Deeds/PensRR.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==11){
			this.sellPro=11;
			ImageIcon img = new ImageIcon("Deeds/James.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==12){
			this.sellPro=12;
			ImageIcon img = new ImageIcon("Deeds/Tennesee.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==13){
			this.sellPro=13;
			ImageIcon img = new ImageIcon("Deeds/NewYork.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==14){
			this.sellPro=14;
			ImageIcon img = new ImageIcon("Deeds/Kentucky.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==15){
			this.sellPro=15;
			ImageIcon img = new ImageIcon("Deeds/Indiana.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==16){
			this.sellPro=16;
			ImageIcon img = new ImageIcon("Deeds/Illinois.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==17){
			this.sellPro=17;
			ImageIcon img = new ImageIcon("Deeds/BO.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==18){
			this.sellPro=18;
			ImageIcon img = new ImageIcon("Deeds/Atlantic.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==19){
			this.sellPro=19;
			ImageIcon img = new ImageIcon("Deeds/Ventor.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==20){
			this.sellPro=20;
			ImageIcon img = new ImageIcon("Deeds/WW.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==21){
			this.sellPro=20;
			ImageIcon img = new ImageIcon("Deeds/MarvinGardens.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==22){
			this.sellPro=22;
			ImageIcon img = new ImageIcon("Deeds/Pacific.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==23){
			this.sellPro=23;
			ImageIcon img = new ImageIcon("Deeds/Nth.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==24){
			this.sellPro=24;
			ImageIcon img = new ImageIcon("Deeds/Penns.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==25){
			this.sellPro=25;
			ImageIcon img = new ImageIcon("Deeds/ShortLine.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		if(x==26){
			this.sellPro=26;
			ImageIcon img = new ImageIcon("Deeds/ParkPlace.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}

		if(x==27){
			this.sellPro=27;
			ImageIcon img = new ImageIcon("Deeds/BoardWalk.jpg");
			label = new JLabel(img);
			label.setBounds(0, 0, 179, 300);
			label.setVisible(true);
			panels.add(label);
			}
		
		frames.setVisible(true);
		
	}
	public void Start(PropertyEvent property) {
		this.property=property;
		panel1 = new ImagePanel(new ImageIcon("monopoly1.jpg").getImage());
		frame = new JFrame();
		frame.setSize(1200, 700);
		frame.add(panel1);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		testbut = new JButton("Test Mode");
		multibut = new JButton("Multiplayer");
		twoPlayer = new JButton("Two Players");
		threePlayer = new JButton("Three Players");
		fourPlayer = new JButton("Four Players");
		fivePlayer = new JButton("Five Players");
		sixPlayer = new JButton("Six Players");
		sevenPlayer = new JButton("Seven Players");
		eightPlayer = new JButton("Eight Players");

		testbut.setBounds(525, 300, 120, 40);
		testbut.setBackground(Color.white);
		testbut.setForeground(Color.black);
		testbut.addActionListener(this);

		multibut.setBounds(525, 345, 120, 40);
		multibut.setBackground(Color.white);
		multibut.setForeground(Color.black);
		multibut.addActionListener(this);

		twoPlayer.setBounds(525, 300, 120, 40);
		twoPlayer.setBackground(Color.white);
		twoPlayer.setForeground(Color.black);
		twoPlayer.setVisible(false);
		twoPlayer.addActionListener(this);

		threePlayer.setBounds(525, 345, 120, 40);
		threePlayer.setBackground(Color.white);
		threePlayer.setForeground(Color.black);
		threePlayer.setVisible(false);
		threePlayer.addActionListener(this);

		fourPlayer.setBounds(525, 390, 120, 40);
		fourPlayer.setBackground(Color.white);
		fourPlayer.setForeground(Color.black);
		fourPlayer.setVisible(false);
		fourPlayer.addActionListener(this);

		fivePlayer.setBounds(525, 435, 120, 40);
		fivePlayer.setBackground(Color.white);
		fivePlayer.setForeground(Color.black);
		fivePlayer.setVisible(false);
		fivePlayer.addActionListener(this);

		sixPlayer.setBounds(525, 480, 120, 40);
		sixPlayer.setBackground(Color.white);
		sixPlayer.setForeground(Color.black);
		sixPlayer.setVisible(false);
		sixPlayer.addActionListener(this);

		sevenPlayer.setBounds(525, 525, 120, 40);
		sevenPlayer.setBackground(Color.white);
		sevenPlayer.setForeground(Color.black);
		sevenPlayer.setVisible(false);
		sevenPlayer.addActionListener(this);

		eightPlayer.setBounds(525, 570, 120, 40);
		eightPlayer.setBackground(Color.white);
		eightPlayer.setForeground(Color.black);
		eightPlayer.setVisible(false);
		eightPlayer.addActionListener(this);

		panel1.add(twoPlayer);
		panel1.add(threePlayer);
		panel1.add(fourPlayer);
		panel1.add(fivePlayer);
		panel1.add(sixPlayer);
		panel1.add(sevenPlayer);
		panel1.add(eightPlayer);
		panel1.add(multibut);
		panel1.add(testbut);

		frame.setVisible(true);

	}

	// O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//
	public void testmode() {
		int playerSize = players.length;
		int x = 0;

		panel2 = new ImagePanel(new ImageIcon("monopoly2.jpg").getImage());
		testmodeFrame = new JFrame();
		testmodeFrame.setSize(1200, 700);
		testmodeFrame.add(panel2);
		testmodeFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		car = new JRadioButton();
		car.setBounds(300, 340, 20, 20);
		carLabel = new JLabel();
		carLabel.setText("Car");
		carLabel.setBounds(330, 340, 100, 20);
		car.setBackground(Color.gray);
		car.setSelected(true);
		car.addItemListener(listener);

		hat = new JRadioButton();
		hat.setBounds(300, 400, 20, 20);
		hatLabel = new JLabel();
		hatLabel.setText("Hat");
		hatLabel.setBounds(330, 400, 100, 20);
		hat.setBackground(Color.gray);
		hat.addItemListener(listener);

		dog = new JRadioButton();
		dog.setBounds(300, 460, 20, 20);
		dogLabel = new JLabel();
		dogLabel.setText("Dog");
		dogLabel.setBounds(330, 460, 100, 20);
		dog.setBackground(Color.gray);
		dog.addItemListener(listener);

		shoe = new JRadioButton();
		shoe.setBounds(300, 520, 20, 20);
		shoeLabel = new JLabel();
		shoeLabel.setText("Shoe");
		shoeLabel.setBounds(330, 520, 100, 20);
		shoe.setBackground(Color.gray);
		shoe.addItemListener(listener);

		ship = new JRadioButton();
		ship.setBounds(400, 340, 20, 20);
		shipLabel = new JLabel();
		shipLabel.setText("Ship");
		shipLabel.setBounds(430, 340, 100, 20);
		ship.setBackground(Color.gray);
		ship.addItemListener(listener);

		lagayanbato = new JRadioButton();
		lagayanbato.setBounds(400, 400, 20, 20);
		lagayanbatoLabel = new JLabel();
		lagayanbatoLabel.setText("Lalagyanan nang bato");
		lagayanbatoLabel.setBounds(430, 400, 150, 20);
		lagayanbato.setBackground(Color.gray);
		lagayanbato.addItemListener(listener);

		plancha = new JRadioButton();
		plancha.setBounds(400, 460, 20, 20);
		planchaLabel = new JLabel();
		planchaLabel.setText("Plancha");
		planchaLabel.setBounds(430, 460, 100, 20);
		plancha.setBackground(Color.gray);
		plancha.addItemListener(listener);

		bell = new JRadioButton();
		bell.setBounds(400, 520, 20, 20);
		bellLabel = new JLabel();
		bellLabel.setText("Bell");
		bellLabel.setBounds(430, 520, 100, 20);
		bell.setBackground(Color.gray);
		bell.addItemListener(listener);

		ButtonGroup bgroup = new ButtonGroup();
		bgroup.add(car);
		bgroup.add(hat);
		bgroup.add(dog);
		bgroup.add(shoe);
		bgroup.add(ship);
		bgroup.add(lagayanbato);
		bgroup.add(plancha);
		bgroup.add(bell);

		panel2.add(bell);
		panel2.add(bellLabel);
		panel2.add(planchaLabel);
		panel2.add(plancha);
		panel2.add(lagayanbato);
		panel2.add(lagayanbatoLabel);
		panel2.add(ship);
		panel2.add(shipLabel);
		panel2.add(shoe);
		panel2.add(shoeLabel);
		panel2.add(dog);
		panel2.add(dogLabel);
		panel2.add(hatLabel);
		panel2.add(carLabel);
		panel2.add(car);
		panel2.add(hat);

		ImageIcon carImage = new ImageIcon("Car Token.png");
		carImageContainer = new JLabel(carImage);
		carImageContainer.setBounds(706, 290, 200, 200);
		carImageContainer.setVisible(true);
		panel2.add(carImageContainer);

		ImageIcon hatImage = new ImageIcon("Hat Token.png");
		hatImageContainer = new JLabel(hatImage);
		hatImageContainer.setBounds(706, 290, 200, 200);
		hatImageContainer.setVisible(false);
		panel2.add(hatImageContainer);

		ImageIcon dogImage = new ImageIcon("Dog Token.png");
		dogImageContainer = new JLabel(dogImage);
		dogImageContainer.setBounds(706, 290, 200, 200);
		dogImageContainer.setVisible(false);
		panel2.add(dogImageContainer);

		ImageIcon shoeImage = new ImageIcon("Shoe Token.png");
		shoeImageContainer = new JLabel(shoeImage);
		shoeImageContainer.setBounds(706, 290, 200, 200);
		shoeImageContainer.setVisible(false);
		panel2.add(shoeImageContainer);

		ImageIcon shipImage = new ImageIcon("Ship Token.png");
		shipImageContainer = new JLabel(shipImage);
		shipImageContainer.setBounds(706, 290, 200, 200);
		shipImageContainer.setVisible(false);
		panel2.add(shipImageContainer);

		ImageIcon lagayanbatoImage = new ImageIcon("lagayanbato.png");
		lagayanbatoImageContainer = new JLabel(lagayanbatoImage);
		lagayanbatoImageContainer.setBounds(706, 290, 200, 200);
		lagayanbatoImageContainer.setVisible(false);
		panel2.add(lagayanbatoImageContainer);

		ImageIcon bellImage = new ImageIcon("Bell Token.png");
		bellImageContainer = new JLabel(bellImage);
		bellImageContainer.setBounds(706, 290, 200, 200);
		bellImageContainer.setVisible(false);
		panel2.add(bellImageContainer);

		ImageIcon planchaImage = new ImageIcon("Plancha Token.png");
		planchaImageContainer = new JLabel(planchaImage);
		planchaImageContainer.setBounds(706, 290, 200, 200);
		planchaImageContainer.setVisible(false);
		panel2.add(planchaImageContainer);

		Border border = BorderFactory.createLineBorder(Color.black, 3);
		Font f = new Font("Dialog", Font.PLAIN, 14);
		chooseTokenBut = new JButton("Click here to use this token!");
		chooseTokenBut.setBounds(682, 485, 238, 42);
		chooseTokenBut.setBorder(border);
		chooseTokenBut.setVisible(true);
		chooseTokenBut.setForeground(Color.black);
		chooseTokenBut.setBackground(Color.gray);
		chooseTokenBut.addActionListener(this);
		chooseTokenBut.setFont(f);
		panel2.add(chooseTokenBut);

		chooseTokenLabel = new JLabel("Player 1 please choose your Token:");
		chooseTokenLabel.setBounds(300, 280, 250, 20);
		chooseTokenLabel.setForeground(Color.black);
		chooseTokenLabel.setVisible(true);

		continueButt = new JButton("Continue");
		continueButt.setBounds(700, 500, 150, 20);
		continueButt.setVisible(true);
		continueButt.setForeground(Color.WHITE);
		continueButt.setBackground(Color.BLUE);
		continueButt.addActionListener(this);
		continueButt.setVisible(false);
		panel2.add(continueButt);
		panel2.add(chooseTokenLabel);
		testmodeFrame.setVisible(true);

	}

	// O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//
	public void boarGameNa() {
		// save token no.

		int[] token = new int[players.length];
		for (int i = 0; i < players.length; i++) {
			token[i] = players[i].getToken();
		}

		Border border = BorderFactory.createLineBorder(Color.black, 3);

		int start = players[board.turn].getMoney();
		String money = String.valueOf(start);
		testmodeFrame.setVisible(false);

		panel3 = new ImagePanel(new ImageIcon("MonopolyBoard.jpg").getImage());
		gameBoard = new JFrame();
		gameBoard.setSize(1055, 635);
		if(players.length==1){
			
			this.dobolroll=new JButton();
			dobolroll.setBounds(340, 460, 170, 50);
			dobolroll.setVisible(true);
			dobolroll.setText("Auto double roll");
			dobolroll.addActionListener(this);
			panel3.add(dobolroll);
			
			this.cheat1=new JButton();
			this.cheat1.setBounds(340, 400, 170, 50);
			this.cheat1.setVisible(true);
			this.cheat1.setText("+100");
			this.cheat1.addActionListener(this);
			panel3.add(cheat1);
		}
		moneyLabel = new JLabel(" $ " + money);
		moneyLabel.setForeground(Color.white);
		Font f = new Font("Dialog", Font.PLAIN, 20);
		moneyLabel.setFont(f);
		moneyLabel.setBounds(860, 50, 110, 40);
		panel3.add(moneyLabel);

		Player = new JLabel("Player 1");
		Player.setForeground(Color.white);
		Font g = new Font("Dialog", Font.PLAIN, 20);
		Player.setFont(g);
		Player.setBounds(630, 5, 200, 70);
		panel3.add(Player);

		ImageIcon Token = new ImageIcon("Tokens/Car Token.png");
		carToken = new JLabel(Token);
		carToken.setBounds(545, 545, 50, 50);
		carToken.setVisible(false);
		panel3.add(carToken);
		ImageIcon TokenImage = new ImageIcon("PlayerImage/Car Token.jpg");
		carimageLabel = new JLabel(TokenImage);
		carimageLabel.setBounds(710, 15, 50, 50);
		carimageLabel.setVisible(false);

		ImageIcon Token2 = new ImageIcon("Tokens/Hat Token.png");
		hatToken = new JLabel(Token2);
		hatToken.setBounds(545, 545, 50, 50);
		hatToken.setVisible(false);
		panel3.add(hatToken);
		ImageIcon TokenImage2 = new ImageIcon("PlayerImage/Hat Token.jpg");
		hatimageLabel = new JLabel(TokenImage2);
		hatimageLabel.setBounds(710, 15, 50, 50);
		hatimageLabel.setVisible(false);

		ImageIcon Token3 = new ImageIcon("Tokens/Bell Token.png");
		bellToken = new JLabel(Token3);
		bellToken.setBounds(545, 545, 50, 50);
		bellToken.setVisible(false);
		panel3.add(bellToken);
		ImageIcon TokenImage3 = new ImageIcon("PlayerImage/Bell Token.jpg");
		bellimageLabel = new JLabel(TokenImage3);
		bellimageLabel.setBounds(710, 15, 50, 50);
		bellimageLabel.setVisible(false);

		ImageIcon Token4 = new ImageIcon("Tokens/Dog Token.png");
		dogToken = new JLabel(Token4);
		dogToken.setBounds(545, 545, 50, 50);
		dogToken.setVisible(false);
		panel3.add(dogToken);
		ImageIcon TokenImage4 = new ImageIcon("PlayerImage/Dog Token.jpg");
		dogimageLabel = new JLabel(TokenImage4);
		dogimageLabel.setBounds(710, 15, 50, 50);
		dogimageLabel.setVisible(false);

		ImageIcon Token5 = new ImageIcon("Tokens/Shoe Token.png");
		shoeToken = new JLabel(Token5);
		shoeToken.setBounds(545, 545, 50, 50);
		shoeToken.setVisible(false);
		panel3.add(shoeToken);
		ImageIcon TokenImage5 = new ImageIcon("PlayerImage/Shoe Token.jpg");
		shoeimageLabel = new JLabel(TokenImage5);
		shoeimageLabel.setBounds(710, 15, 50, 50);
		shoeimageLabel.setVisible(false);

		ImageIcon Token6 = new ImageIcon("Tokens/Ship Token.png");
		shipToken = new JLabel(Token6);
		shipToken.setBounds(545, 545, 50, 50);
		shipToken.setVisible(false);
		panel3.add(shipToken);
		ImageIcon TokenImage6 = new ImageIcon("PlayerImage/Ship Token.jpg");
		shipimageLabel = new JLabel(TokenImage6);
		shipimageLabel.setBounds(710, 15, 50, 50);
		shipimageLabel.setVisible(false);

		ImageIcon Token7 = new ImageIcon("Tokens/lagayanbato.png");
		lagayanbatoToken = new JLabel(Token7);
		lagayanbatoToken.setBounds(545, 545, 50, 50);
		lagayanbatoToken.setVisible(false);
		panel3.add(lagayanbatoToken);
		ImageIcon TokenImage7 = new ImageIcon("PlayerImage/lagayanbato.jpg");
		lagayanbatoimageLabel = new JLabel(TokenImage7);
		lagayanbatoimageLabel.setBounds(710, 15, 50, 50);
		lagayanbatoimageLabel.setVisible(false);

		ImageIcon Token8 = new ImageIcon("Tokens/Plancha Token.png");
		planchaToken = new JLabel(Token8);
		planchaToken.setBounds(545, 545, 50, 50);
		planchaToken.setVisible(false);
		panel3.add(planchaToken);
		ImageIcon TokenImage8 = new ImageIcon("PlayerImage/Plancha Token.jpg");
		planchaimageLabel = new JLabel(TokenImage8);
		planchaimageLabel.setBounds(710, 15, 50, 50);
		planchaimageLabel.setVisible(false);

		ImageIcon rollingDice = new ImageIcon("rolling dice.gif");
		diceLabel = new JLabel(rollingDice);
		diceLabel.setBounds(300, 120, 150, 150);
		diceLabel.setVisible(true);
		panel3.add(diceLabel);

		diceLabel2 = new JLabel(rollingDice);
		diceLabel2.setBounds(370, 120, 150, 150);
		diceLabel2.setVisible(true);
		panel3.add(diceLabel2);
		
		trade = new JButton();
		trade.setBounds(870, 115, 100, 50);
		trade.setVisible(false);
		trade.setText("Trade");
		trade.addActionListener(this);
		panel3.add(trade);
		
		ImageIcon MedAveIcon = new ImageIcon("Deeds/MedAve.jpg");
		this.MedAveCard = new JLabel(MedAveIcon);
		this.MedAveCard.setBounds(700,283, 250, 350);
		this.MedAveCard.setVisible(false);
		panel3.add(MedAveCard);
		
		ImageIcon BalticAveIcon = new ImageIcon("Deeds/BalticAve.jpg");
		this.BalticAvecard = new JLabel(BalticAveIcon);
		this.BalticAvecard.setBounds(700,283, 250, 350);
		this.BalticAvecard.setVisible(false);
		panel3.add(BalticAvecard);
		
		ImageIcon RRIcon = new ImageIcon("Deeds/RR.jpg");
		this.RRCard = new JLabel(RRIcon);
		this.RRCard.setBounds(700,283, 250, 350);
		this.RRCard.setVisible(false);
		panel3.add(RRCard);
		
		ImageIcon OrientalIcon = new ImageIcon("Deeds/Oriental.jpg");
		this.OrientalAvecard = new JLabel(OrientalIcon);
		this.OrientalAvecard.setBounds(700,283, 250, 350);
		this.OrientalAvecard.setVisible(false);
		panel3.add(OrientalAvecard);
		
		ImageIcon VermontIcon = new ImageIcon("Deeds/Vermont.jpg");
		this.VermontAveCard = new JLabel(VermontIcon);
		this.VermontAveCard.setBounds(700,283, 250, 350);
		this.VermontAveCard.setVisible(false);
		panel3.add(VermontAveCard);
		
		ImageIcon ConneticutIcon = new ImageIcon("Deeds/Conn.jpg");
		this.ConneticutAveCard = new JLabel(ConneticutIcon);
		this.ConneticutAveCard.setBounds(700,283, 250, 350);
		this.ConneticutAveCard.setVisible(false);
		panel3.add(this.ConneticutAveCard);
		
		ImageIcon CharlseIcon = new ImageIcon("Deeds/Charlse.jpg");
		this.CharlseCard = new JLabel(CharlseIcon);
		this.CharlseCard.setBounds(700,283, 250, 350);
		this.CharlseCard.setVisible(false);
		panel3.add(this.CharlseCard);
		
		ImageIcon ElectricIcon = new ImageIcon("Deeds/Electric.jpg");
		this.ElecCompCard = new JLabel(ElectricIcon);
		this.ElecCompCard.setBounds(700,283, 250, 350);
		this.ElecCompCard.setVisible(false);
		panel3.add(this.ElecCompCard);
		
		ImageIcon StatesIcon = new ImageIcon("Deeds/StatesAve.jpg");
		this.StatesAveCard = new JLabel(StatesIcon);
		this.StatesAveCard.setBounds(700,283, 250, 350);
		this.StatesAveCard.setVisible(false);
		panel3.add(this.StatesAveCard);

		ImageIcon VirginiaIcon = new ImageIcon("Deeds/Virginia.jpg");
		this.VirginiaAveCard = new JLabel(VirginiaIcon);
		this.VirginiaAveCard.setBounds(700,283, 250, 350);
		this.VirginiaAveCard.setVisible(false);
		panel3.add(this.VirginiaAveCard);
		
		ImageIcon PensylveniaIcon = new ImageIcon("Deeds/PensRR.jpg");
		this.PensRRCard = new JLabel(PensylveniaIcon);
		this.PensRRCard.setBounds(700,283, 250, 350);
		this.PensRRCard.setVisible(false);
		panel3.add(this.PensRRCard);
		
		ImageIcon JamesIcon = new ImageIcon("Deeds/James.jpg");
		this.JamesCard = new JLabel(JamesIcon);
		this.JamesCard.setBounds(700,283, 250, 350);
		this.JamesCard.setVisible(false);
		panel3.add(this.JamesCard);
		
		ImageIcon TenneseeIcon = new ImageIcon("Deeds/Tennesee.jpg");
		this.TennesseAveCard = new JLabel(TenneseeIcon);
		this.TennesseAveCard.setBounds(700,283, 250, 350);
		this.TennesseAveCard.setVisible(false);
		panel3.add(this.TennesseAveCard);
		
		ImageIcon NewYorkIcon = new ImageIcon("Deeds/NewYork.jpg");
		this.NewYorkAveCard = new JLabel(NewYorkIcon);
		this.NewYorkAveCard.setBounds(700,283, 250, 350);
		this.NewYorkAveCard.setVisible(false);
		panel3.add(this.NewYorkAveCard);
		
		ImageIcon KentuckyIcon = new ImageIcon("Deeds/Kentucky.jpg");
		this.KentuckyAveCard = new JLabel(KentuckyIcon);
		this.KentuckyAveCard.setBounds(700,283, 250, 350);
		this.KentuckyAveCard.setVisible(false);
		panel3.add(this.KentuckyAveCard);
		
		ImageIcon IndianaIcon = new ImageIcon("Deeds/Indiana.jpg");
		this.IndianaAveCard = new JLabel(IndianaIcon);
		this.IndianaAveCard.setBounds(700,283, 250, 350);
		this.IndianaAveCard.setVisible(false);
		panel3.add(this.IndianaAveCard);
		
		ImageIcon IllinoisIcon = new ImageIcon("Deeds/Illinois.jpg");
		this.IllinoisAveCard = new JLabel(IllinoisIcon);
		this.IllinoisAveCard.setBounds(700,283, 250, 350);
		this.IllinoisAveCard.setVisible(false);
		panel3.add(this.IllinoisAveCard);
		
		ImageIcon BOIcon = new ImageIcon("Deeds/BO.jpg");
		this.BORRCard = new JLabel(BOIcon);
		this.BORRCard.setBounds(700,283, 250, 350);
		this.BORRCard.setVisible(false);
		panel3.add(this.BORRCard);
		
		ImageIcon AtlanticIcon = new ImageIcon("Deeds/Atlantic.jpg");
		this.AtlanticAveCard = new JLabel(AtlanticIcon);
		this.AtlanticAveCard.setBounds(700,283, 250, 350);
		this.AtlanticAveCard.setVisible(false);
		panel3.add(this.AtlanticAveCard);
		
		ImageIcon VentorIcon = new ImageIcon("Deeds/Ventor.jpg");
		this.VentorAveCard = new JLabel(VentorIcon);
		this.VentorAveCard.setBounds(700,283, 250, 350);
		this.VentorAveCard.setVisible(false);
		panel3.add(this.VentorAveCard);
		
		ImageIcon WWIcon = new ImageIcon("Deeds/WW.jpg");
		this.WWCard = new JLabel(WWIcon);
		this.WWCard.setBounds(700,283, 250, 350);
		this.WWCard.setVisible(false);
		panel3.add(this.WWCard);
		
		ImageIcon MarvinGardensIcon = new ImageIcon("Deeds/MarvinGardens.jpg");
		this.MarvinGardenCard = new JLabel(MarvinGardensIcon);
		this.MarvinGardenCard.setBounds(700,283, 250, 350);
		this.MarvinGardenCard.setVisible(false);
		panel3.add(this.MarvinGardenCard);
		
		ImageIcon PacificIcon = new ImageIcon("Deeds/Pacific.jpg");
		this.PacificAvecard = new JLabel(PacificIcon);
		this.PacificAvecard.setBounds(700,283, 250, 350);
		this.PacificAvecard.setVisible(false);
		panel3.add(this.PacificAvecard);
		
		
	
		
		
		ImageIcon NTHCaroIcon = new ImageIcon("Deeds/NTH.jpg");
		this.NthCaroCard = new JLabel(NTHCaroIcon);
		this.NthCaroCard.setBounds(700,283, 250, 350);
		this.NthCaroCard.setVisible(false);
		panel3.add(this.NthCaroCard);
		
		ImageIcon PensAveIcon = new ImageIcon("Deeds/Penns.jpg");
		this.PensAvecard = new JLabel(PensAveIcon);
		this.PensAvecard.setBounds(700,283, 250, 350);
		this.PensAvecard.setVisible(false);
		panel3.add(this.PensAvecard);
		
		ImageIcon ShortLineIcon = new ImageIcon("Deeds/ShortLine.jpg");
		this.ShortLineCard = new JLabel(ShortLineIcon);
		this.ShortLineCard.setBounds(700,283, 250, 350);
		this.ShortLineCard.setVisible(false);
		panel3.add(this.ShortLineCard);
		
		ImageIcon ParkPlaceIcon = new ImageIcon("Deeds/ParkPlace.jpg");
		this.ParkPlacecard = new JLabel(ParkPlaceIcon);
		this.ParkPlacecard.setBounds(700,283, 250, 350);
		this.ParkPlacecard.setVisible(false);
		panel3.add(this.ParkPlacecard);
		
		ImageIcon BoardWalkIcon = new ImageIcon("Deeds/BoardWalk.jpg");
		this.BoardWalkcard = new JLabel(BoardWalkIcon);
		this.BoardWalkcard.setBounds(700,283, 250, 350);
		this.BoardWalkcard.setVisible(false);
		panel3.add(this.BoardWalkcard);
		
		ImageIcon ChanceOne = new ImageIcon("Chance/gotojail.jpg");
		ImageIcon ChanceTwo = new ImageIcon("Chance/WalkOnBoardwalk.jpg");
		ImageIcon ChanceThree = new ImageIcon("Chance/AdvanceToIllinois.jpg");
		ImageIcon ChanceFour = new ImageIcon("Chance/YourBuildingAndLoanMatures.jpg");
		ImageIcon ChanceFive = new ImageIcon("Chance/ElectedChairmanOfBoard.jpg");
		ImageIcon ChanceSix = new ImageIcon("Chance/WalkOnBoardwalk.jpg");
		ImageIcon ChanceSeven = new ImageIcon("Chance/YouAreAssesForStreetReapair.jpg");
		ImageIcon ChanceEight = new ImageIcon("Chance/AdvanceToCharlse.jpg");
		ImageIcon ChanceNine = new ImageIcon("Chance/AdvanceToGo.jpg");
		ImageIcon ChanceTen = new ImageIcon("Chance/payschooltax.jpg");
		ImageIcon ChanceEleven = new ImageIcon("Chance/takerideonreading.jpg");
		ImageIcon ChanceTwelve = new ImageIcon("Chance/gotojail.jpg");
		ImageIcon ChanceThirteen = new ImageIcon("Chance/paypoortax.jpg");
		ImageIcon ChanceFourteen = new ImageIcon("Chance/xmasfund.jpg");
		ImageIcon ChanceFifteen = new ImageIcon("Chance/parkingfine.jpg");
		ImageIcon ChanceSixteen = new ImageIcon("Chance/generalRepairs.jpg");
		ImageIcon ChanceSeventeen = new ImageIcon("Chance/BanksPaysYouDividendOf50.jpg");
		
		this.Chance1 = new JLabel(ChanceOne);
		this.Chance1.setBounds(700,283, 250, 350);
		this.Chance1.setVisible(false);
		panel3.add(Chance1);
		
		this.Chance2 = new JLabel(ChanceTwo);
		this.Chance2.setBounds(700,283, 250, 350);
		this.Chance2.setVisible(false);
		panel3.add(Chance2);
		
		
		this.Chance3 = new JLabel(ChanceThree);
		this.Chance3.setBounds(700,283, 250, 350);
		this.Chance3.setVisible(false);
		panel3.add(Chance3);
		
		this.Chance4 = new JLabel(ChanceFour);
		this.Chance4.setBounds(700,283, 250, 350);
		this.Chance4.setVisible(false);
		panel3.add(Chance4);
		
		this.Chance5 = new JLabel(ChanceFive);
		this.Chance5.setBounds(700,283, 250, 350);
		this.Chance5.setVisible(false);
		panel3.add(Chance5);
		
		this.Chance4 = new JLabel(ChanceFour);
		this.Chance4.setBounds(700,283, 250, 350);
		this.Chance4.setVisible(false);
		panel3.add(Chance4);
		
		this.Chance5 = new JLabel(ChanceFive);
		this.Chance5.setBounds(700,283, 250, 350);
		this.Chance5.setVisible(false);
		panel3.add(Chance5);
		
		this.Chance6 = new JLabel(ChanceSix);
		this.Chance6.setBounds(700,283, 250, 350);
		this.Chance6.setVisible(false);
		panel3.add(Chance6);
		
		this.Chance7 = new JLabel(ChanceSeven);
		this.Chance7.setBounds(700,283, 250, 350);
		this.Chance7.setVisible(false);
		panel3.add(Chance7);
		
		this.Chance8 = new JLabel(ChanceEight);
		this.Chance8.setBounds(700,283, 250, 350);
		this.Chance8.setVisible(false);
		panel3.add(Chance8);
		
		this.Chance9 = new JLabel(ChanceNine);
		this.Chance9.setBounds(700,283, 250, 350);
		this.Chance9.setVisible(false);
		panel3.add(Chance9);
		
		this.Chance10 = new JLabel(ChanceTen);
		this.Chance10.setBounds(700,283, 250, 350);
		this.Chance10.setVisible(false);
		panel3.add(Chance10);
		
		this.Chance11 = new JLabel(ChanceEleven);
		this.Chance11.setBounds(700,283, 250, 350);
		this.Chance11.setVisible(false);
		panel3.add(Chance11);
		
		this.Chance12= new JLabel(ChanceTwelve);
		this.Chance12.setBounds(700,283, 250, 350);
		this.Chance12.setVisible(false);
		panel3.add(Chance12);
		
		this.Chance13 = new JLabel(ChanceThirteen);
		this.Chance13.setBounds(700,283, 250, 350);
		this.Chance13.setVisible(false);
		panel3.add(Chance13);
		
		this.Chance14 = new JLabel(ChanceFourteen);
		this.Chance14.setBounds(700,283, 250, 350);
		this.Chance14.setVisible(false);
		panel3.add(Chance14);
		
		this.Chance15 = new JLabel(ChanceFifteen);
		this.Chance15.setBounds(700,283, 250, 350);
		this.Chance15.setVisible(false);
		panel3.add(Chance15);
		
		this.Chance16 = new JLabel(ChanceSixteen);
		this.Chance16.setBounds(700,283, 250, 350);
		this.Chance16.setVisible(false);
		panel3.add(Chance16);
		
		this.Chance17 = new JLabel(ChanceSeventeen);
		this.Chance17.setBounds(700,283, 250, 350);
		this.Chance17.setVisible(false);
		panel3.add(Chance17);
		
		ImageIcon ComOne = new ImageIcon("Com/GetOutOfJailFree.jpg");
		ImageIcon ComTwo = new ImageIcon("Com/Everyone Must Donate.jpg");
		ImageIcon ComThree = new ImageIcon("Com/WereOfGOldStand.jpg");
		ImageIcon ComFour = new ImageIcon("Com/PayHosp.jpg");
		ImageIcon ComFive = new ImageIcon("Com/ReceiveForService25.jpg");
		ImageIcon ComSix = new ImageIcon("Com/DoctorsFee.jpg");
		ImageIcon ComSeven = new ImageIcon("Com/BankError.jpg");
		ImageIcon ComEight = new ImageIcon("Com/LifeInsurance.jpg");
		ImageIcon ComNine = new ImageIcon("Com/AdvanceToGo.jpg");
		ImageIcon ComTen = new ImageIcon("Com/FromSaleofStockYouGet45.jpg");
		ImageIcon ComEleven = new ImageIcon("Com/IncomeTaxRefun.jpg");
		ImageIcon ComTwelve = new ImageIcon("Com/GoToJail.jpg");
		ImageIcon ComThirteen = new ImageIcon("Com/SeconPriceInBeauty.jpg");
		ImageIcon ComFourteen = new ImageIcon("Com/Inherit100.jpg");
		ImageIcon ComFifteen = new ImageIcon("Com/GrandOperaOpening.jpg");
		
		
		this.Com1 = new JLabel(ComOne);
		this.Com1.setBounds(700,283, 250, 350);
		this.Com1.setVisible(false);
		panel3.add(Com1);
		
		this.Com2 = new JLabel(ComTwo);
		this.Com2.setBounds(700,283, 250, 350);
		this.Com2.setVisible(false);
		panel3.add(Com2);
		
		this.Com3 = new JLabel(ComThree);
		this.Com3.setBounds(700,283, 250, 350);
		this.Com3.setVisible(false);
		panel3.add(Com3);
		
		this.Com4 = new JLabel(ComFour);
		this.Com4.setBounds(700,283, 250, 350);
		this.Com4.setVisible(false);
		panel3.add(Com4);
		
		this.Com5 = new JLabel(ComFive);
		this.Com5.setBounds(700,283, 250, 350);
		this.Com5.setVisible(false);
		panel3.add(Com5);
		
		this.Com6 = new JLabel(ComSix);
		this.Com6.setBounds(700,283, 250, 350);
		this.Com6.setVisible(false);
		panel3.add(Com6);
		
		this.Com7 = new JLabel(ComSeven);
		this.Com7.setBounds(700,283, 250, 350);
		this.Com7.setVisible(false);
		panel3.add(Com7);
		
		this.Com8 = new JLabel(ComEight);
		this.Com8.setBounds(700,283, 250, 350);
		this.Com8.setVisible(false);
		panel3.add(Com8);
		
		this.Com9 = new JLabel(ComNine);
		this.Com9.setBounds(700,283, 250, 350);
		this.Com9.setVisible(false);
		panel3.add(Com9);
		
		this.Com10 = new JLabel(ComTen);
		this.Com10.setBounds(700,283, 250, 350);
		this.Com10.setVisible(false);
		panel3.add(Com10);
		
		this.Com11 = new JLabel(ComEleven);
		this.Com11.setBounds(700,283, 250, 350);
		this.Com11.setVisible(false);
		panel3.add(Com11);
		
		this.Com12 = new JLabel(ComTwelve);
		this.Com12.setBounds(700,283, 250, 350);
		this.Com12.setVisible(false);
		panel3.add(Com12);
		
		this.Com13 = new JLabel(ComThirteen);
		this.Com13.setBounds(700,283, 250, 350);
		this.Com13.setVisible(false);
		panel3.add(Com13);
		
		this.Com14 = new JLabel(ComFourteen);
		this.Com14.setBounds(700,283, 250, 350);
		this.Com14.setVisible(false);
		panel3.add(Com14);
		
		this.Com15 = new JLabel(ComFifteen);
		this.Com15.setBounds(700,283, 250, 350);
		this.Com15.setVisible(false);
		panel3.add(Com15);
		
		
		rollDiceOk = new JButton("End Turn");
		rollDiceOk.setBounds(750, 115, 100, 50);
		rollDiceOk.setForeground(Color.black);
		rollDiceOk.setVisible(false);
		rollDiceOk.addActionListener(this);

		rollDice = new JButton("Stop The Dice");
		rollDice.setBounds(100, 300, 150, 50);
		rollDice.setForeground(Color.black);
		rollDice.addActionListener(this);
		
		this.useGetOut = new JButton("Use Jail Card");
		this.useGetOut.setBounds(100, 250, 150, 50);
		this.useGetOut.setVisible(false);
		this.useGetOut.setForeground(Color.black);
		this.useGetOut.addActionListener(this);
		panel3.add(useGetOut);
		
		pay = new JButton("Pay 50$ fine");
		pay.setBounds(100, 350, 150, 50);
		pay.setForeground(Color.black);
		pay.setVisible(false);
		pay.addActionListener(this);
		panel3.add(pay);
		
		panel3.add(rollDice);
		panel3.add(rollDiceOk);

		ImageIcon DiceIcon1 = new ImageIcon();
		DiceIcon1 = new ImageIcon("dice1.jpg");
		Dice1A = new JLabel(DiceIcon1);
		Dice1A.setVisible(false);
		Dice1A.setBounds(320, 140, 151, 136);

		ImageIcon DiceIcon2 = new ImageIcon();
		DiceIcon2 = new ImageIcon("dice1.jpg");
		Dice1B = new JLabel(DiceIcon2);
		Dice1B.setVisible(false);
		Dice1B.setBounds(390, 140, 151, 136);

		ImageIcon DiceIcon3 = new ImageIcon();
		DiceIcon3 = new ImageIcon("dice2.jpg");
		Dice2A = new JLabel(DiceIcon3);
		Dice2A.setVisible(false);
		Dice2A.setBounds(320, 140, 151, 136);

		ImageIcon DiceIcon4 = new ImageIcon();
		DiceIcon4 = new ImageIcon("dice2.jpg");
		Dice2B = new JLabel(DiceIcon4);
		Dice2B.setVisible(false);
		Dice2B.setBounds(390, 140, 151, 136);

		ImageIcon DiceIcon5 = new ImageIcon();
		DiceIcon5 = new ImageIcon("dice3.jpg");
		Dice3A = new JLabel(DiceIcon5);
		Dice3A.setVisible(false);
		Dice3A.setBounds(320, 140, 151, 136);

		ImageIcon DiceIcon6 = new ImageIcon();
		DiceIcon6 = new ImageIcon("dice3.jpg");
		Dice3B = new JLabel(DiceIcon6);
		Dice3B.setVisible(false);
		Dice3B.setBounds(390, 140, 151, 136);

		ImageIcon DiceIcon7 = new ImageIcon();
		DiceIcon7 = new ImageIcon("dice4.jpg");
		Dice4A = new JLabel(DiceIcon7);
		Dice4A.setVisible(false);
		Dice4A.setBounds(320, 140, 151, 136);

		ImageIcon DiceIcon8 = new ImageIcon();
		DiceIcon8 = new ImageIcon("dice4.jpg");
		Dice4B = new JLabel(DiceIcon8);
		Dice4B.setVisible(false);
		Dice4B.setBounds(390, 140, 151, 136);

		ImageIcon DiceIcon9 = new ImageIcon();
		DiceIcon9 = new ImageIcon("dice5.jpg");
		Dice5A = new JLabel(DiceIcon9);
		Dice5A.setVisible(false);
		Dice5A.setBounds(320, 140, 151, 136);

		ImageIcon DiceIcon10 = new ImageIcon();
		DiceIcon10 = new ImageIcon("dice5.jpg");
		Dice5B = new JLabel(DiceIcon10);
		Dice5B.setVisible(false);
		Dice5B.setBounds(390, 140, 151, 136);

		ImageIcon DiceIcon11 = new ImageIcon();
		DiceIcon11 = new ImageIcon("dice6.jpg");
		Dice6A = new JLabel(DiceIcon11);
		Dice6A.setVisible(false);
		Dice6A.setBounds(320, 140, 151, 136);

		ImageIcon DiceIcon12 = new ImageIcon();
		DiceIcon12 = new ImageIcon("dice6.jpg");
		Dice6B = new JLabel(DiceIcon12);
		Dice6B.setVisible(false);
		Dice6B.setBounds(390, 140, 151, 136);
		//dan
		
		ImageIcon MrMono = new ImageIcon("Mr.Monopoly.gif");
		this.MrMonopoly = new JLabel(MrMono);
		this.MrMonopoly.setBounds(220, 200, 200, 200);
		this.MrMonopoly.setVisible(true);
		panel3.add(MrMonopoly);
		
		
		
		Font fa = new Font("Dialog", Font.BOLD, 25);
		Sorry = new JLabel();
		Sorry.setBounds(180, 230,300,30);
		Sorry.setVisible(false);
		Sorry.setFont(fa);
		Sorry.setForeground(Color.red);
		panel3.add(Sorry);
		
		OkBut = new JButton();
		OkBut.setBounds(757, 410, 150, 50);
		OkBut.setText("Close");
		OkBut.setVisible(false);
		OkBut.addActionListener(this);
		panel3.add(OkBut);
		
		
		
		
		MedAve = new JButton();
		MedAve.setBackground(Color.MAGENTA);
		MedAve.setBounds(472, 521, 48, 18);
		MedAve.setVisible(true);
		MedAve.addActionListener(this);
		
		BalticAve = new JButton();
		BalticAve.setBackground(Color.MAGENTA);
		BalticAve.setBounds(374, 521, 48, 18);
		BalticAve.setVisible(true);
		BalticAve.addActionListener(this);
		
		OrientalAve = new JButton();
		OrientalAve.setBackground(Color.cyan);
		OrientalAve.setBounds(226, 521, 48, 18);
		OrientalAve.setVisible(true);
		OrientalAve.addActionListener(this);
		
		VermontAve = new JButton();
		VermontAve.setBackground(Color.cyan);
		VermontAve.setBounds(127, 521, 48, 18);
		VermontAve.setVisible(true);
		VermontAve.addActionListener(this);
		
		ConneticutAve = new JButton();
		ConneticutAve.setBackground(Color.cyan);
		ConneticutAve.setBounds(77, 521, 48, 18);
		ConneticutAve.setVisible(true);
		ConneticutAve.addActionListener(this);
		
		Charlse = new JButton();
		Charlse.setBackground(Color.pink);
		Charlse.setBounds(59, 472, 18, 48);
		Charlse.setVisible(true);
		Charlse.addActionListener(this);
		
		StatesAve = new JButton();
		StatesAve.setBackground(Color.pink);
		StatesAve.setBounds(59, 372, 18, 48);
		StatesAve.setVisible(true);
		StatesAve.addActionListener(this);
		
		this.VirginiaAve = new JButton();
		this.VirginiaAve.setBackground(Color.pink);
		this.VirginiaAve.setBounds(59, 322, 18, 48);
		this.VirginiaAve.setVisible(true);
		VirginiaAve.addActionListener(this);
		
		this.James = new JButton();
		this.James.setBackground(Color.orange);
		this.James.setBounds(59, 226, 18, 48);
		this.James.setVisible(true);
		James.addActionListener(this);
		
		this.TennesseAve = new JButton();
		this.TennesseAve.setBackground(Color.orange);
		this.TennesseAve.setBounds(59, 128, 18, 48);
		this.TennesseAve.setVisible(true);
		TennesseAve.addActionListener(this);
		
		this.NewYorkAve = new JButton();
		this.NewYorkAve.setBackground(Color.orange);
		this.NewYorkAve.setBounds(59, 78, 18, 48);
		this.NewYorkAve.setVisible(true);
		NewYorkAve.addActionListener(this);
		
		this.KentuckyAve = new JButton();
		this.KentuckyAve.setBackground(Color.red);
		this.KentuckyAve.setBounds(78, 58, 48, 18);
		this.KentuckyAve.setVisible(true);
		KentuckyAve.addActionListener(this);
		
		this.IndianaAve = new JButton();
		this.IndianaAve.setBackground(Color.red);
		this.IndianaAve.setBounds(176, 58, 48, 18);
		this.IndianaAve.setVisible(true);
		IndianaAve.addActionListener(this);
		
		this.IllinoisAve = new JButton();
		this.IllinoisAve.setBackground(Color.red);
		this.IllinoisAve.setBounds(226, 58, 48, 18);
		this.IllinoisAve.setVisible(true);
		IllinoisAve.addActionListener(this);
		
		this.AtlanticAve = new JButton();
		this.AtlanticAve.setBackground(Color.yellow);
		this.AtlanticAve.setBounds(324, 58, 48, 18);
		this.AtlanticAve.setVisible(true);
		AtlanticAve.addActionListener(this);
		
		this.VentorAve = new JButton();
		this.VentorAve.setBackground(Color.yellow);
		this.VentorAve.setBounds(374, 58, 48, 18);
		this.VentorAve.setVisible(true);
		VentorAve.addActionListener(this);
		
		this.MarvinGardens = new JButton();
		this.MarvinGardens.setBackground(Color.yellow);
		this.MarvinGardens.setBounds(472, 58, 48, 18);
		this.MarvinGardens.setVisible(true);
		MarvinGardens.addActionListener(this);
		
		this.PacificAve = new JButton();
		this.PacificAve.setBackground(Color.green);
		this.PacificAve.setBounds(522, 78, 18, 48);
		this.PacificAve.setVisible(true);
		PacificAve.addActionListener(this);
		
		this.NthCaro = new JButton();
		this.NthCaro.setBackground(Color.green);
		this.NthCaro.setBounds(522, 128, 18, 48);
		this.NthCaro.setVisible(true);
		NthCaro.addActionListener(this);
		
		this.PensAve = new JButton();
		this.PensAve.setBackground(Color.green);
		this.PensAve.setBounds(522, 226, 18, 48);
		this.PensAve.setVisible(true);
		PensAve.addActionListener(this);
		
		
		this.ParkPlace = new JButton();
		this.ParkPlace.setBackground(Color.blue);
		this.ParkPlace.setBounds(522, 373, 18, 48);
		this.ParkPlace.setVisible(true);
		ParkPlace.addActionListener(this);
		
		this.BoardWalk = new JButton();
		this.BoardWalk.setBackground(Color.blue);
		this.BoardWalk.setBounds(522, 472, 18, 48);
		this.BoardWalk.setVisible(true);
		BoardWalk.addActionListener(this);
		

		this.RR = new JButton();
		this.RR.setBackground(Color.white);
		this.RR.setBounds(276, 521, 48, 18);
		this.RR.setVisible(true);
		this.RR.addActionListener(this);
		
		this.ElecComp = new JButton();
		this.ElecComp.setBackground(Color.white);
		this.ElecComp.setBounds(59, 422, 18, 48);
		this.ElecComp.setVisible(true);
		this.ElecComp.addActionListener(this);
		
		this.PensRR = new JButton();
		this.PensRR.setBackground(Color.white);
		this.PensRR.setBounds(59, 275, 18, 48);
		this.PensRR.setVisible(true);
		this.PensRR.addActionListener(this);
		
		this.BORR = new JButton();
		this.BORR.setBackground(Color.white);
		this.BORR.setBounds(275, 58, 48, 18);
		this.BORR.setVisible(true);
		this.BORR.addActionListener(this);
		
		this.WW = new JButton();
		this.WW.setBackground(Color.white);
		this.WW.setBounds(424, 58, 48, 18);
		this.WW.setVisible(true);
		this.WW.addActionListener(this);
		
		this.ShortLine = new JButton();
		this.ShortLine.setBackground(Color.white);
		this.ShortLine.setBounds(522, 275, 18, 48);
		this.ShortLine.setVisible(true);
		this.ShortLine.addActionListener(this);
		
		
		Font fo = new Font("Dialog", Font.BOLD, 18);
		Owner = new JLabel();
		Owner.setBounds(760, 305, 250, 30);
		Owner.setVisible(false);
		Owner.setFont(fo);

		
		
		BuyTittle = new JButton();
		BuyTittle.setBounds(630, 115, 100, 50);
		BuyTittle.setText("Buy");
		BuyTittle.setVisible(false);
		BuyTittle.addActionListener(this);
   //awoo
		
		ImageIcon Violet = new ImageIcon("smallProp/Violet.jpg");
		ImageIcon Yellow = new ImageIcon("smallProp/Yellow.jpg");
		ImageIcon GreenBLue = new ImageIcon("smallProp/Oriental GreenBlue.jpg");
		ImageIcon Red = new ImageIcon("smallProp/Red.jpg");
		ImageIcon Green = new ImageIcon("smallProp/Green.jpg");
		ImageIcon Grey = new ImageIcon("smallProp/Grey.jpg");
		ImageIcon Blue = new ImageIcon("smallProp/Blue.jpg");
		ImageIcon Magenta = new ImageIcon("smallProp/Magenta.jpg");
		ImageIcon Orange = new ImageIcon("smallProp/Orange.jpg");
	
		
		this.MedSmall=new JButton(Violet);
		this.MedSmall.setBounds(628, 186, 19, 28);
		this.MedSmall.setVisible(false);
		this.MedSmall.addActionListener(this);
		panel3.add(MedSmall);
		
		this.BalticAveSmall=new JButton(Violet);
		this.BalticAveSmall.setBounds(656, 186, 19, 28);
		this.BalticAveSmall.setVisible(false);
		this.BalticAveSmall.addActionListener(this);
		panel3.add(this.BalticAveSmall);
		

		this.OrientalAveSmall = new JButton(GreenBLue);
		this.OrientalAveSmall.setBounds(725, 186, 19, 28);
		this.OrientalAveSmall.setVisible(false);
		this.OrientalAveSmall.addActionListener(this);
		panel3.add(this.OrientalAveSmall);
		
		this.VermontAveSmall = new JButton(GreenBLue);
		this.VermontAveSmall.setBounds(752, 186, 19, 28);
		this.VermontAveSmall.setVisible(false);
		this.VermontAveSmall.addActionListener(this);
		panel3.add(VermontAveSmall);
	
		this.ConneticutAveSmall = new JButton(GreenBLue);
		this.ConneticutAveSmall.setBounds(779, 186, 19, 28);
		this.ConneticutAveSmall.setVisible(false);
		this.ConneticutAveSmall.addActionListener(this);
		panel3.add(ConneticutAveSmall);
		
		this.CharlseSmall = new JButton(Magenta);
		this.CharlseSmall.setBounds(726, 237, 19, 28);
		this.CharlseSmall.setVisible(false);
		this.CharlseSmall.addActionListener(this);
		panel3.add(CharlseSmall);
		
		this.ElecCompSmall = new JButton(Grey);
		this.ElecCompSmall.setBounds(701, 211, 19, 28);
		this.ElecCompSmall.setVisible(false);
		this.ElecCompSmall.addActionListener(this);
		panel3.add(ElecCompSmall);
		
		
		this.StatesAveSmall = new JButton(Magenta);
		this.StatesAveSmall.setBounds(752, 237, 19, 28);
		this.StatesAveSmall.setVisible(false);
		this.StatesAveSmall.addActionListener(this);
		panel3.add(StatesAveSmall);
		
		this.VirginiaAveSmall = new JButton(Magenta);
		this.VirginiaAveSmall.setBounds(778, 237, 19, 28);
		this.VirginiaAveSmall.setVisible(false);
		this.VirginiaAveSmall.addActionListener(this);
		panel3.add(VirginiaAveSmall);
		
		this.PensRRSmall = new JButton(Grey);
		this.PensRRSmall.setBounds(800, 213, 19, 28);
		this.PensRRSmall.setVisible(false);
		this.PensRRSmall.addActionListener(this);
		panel3.add(PensRRSmall);
		
		this.JamesSmall = new JButton(Orange);
		this.JamesSmall.setBounds(846, 186, 19, 28);
		this.JamesSmall.setVisible(false);
		this.JamesSmall.addActionListener(this);
		panel3.add(JamesSmall);
		
		this.TennesseAveSmall = new JButton(Orange);
		this.TennesseAveSmall.setBounds(875, 186, 19, 28);
		this.TennesseAveSmall.setVisible(false);
		this.TennesseAveSmall.addActionListener(this);
		panel3.add(TennesseAveSmall);
		
		this.NewYorkAveSmall = new JButton(Orange);
		this.NewYorkAveSmall.setBounds(900, 186, 19, 28);
		this.NewYorkAveSmall.setVisible(false);
		this.NewYorkAveSmall.addActionListener(this);
		panel3.add(NewYorkAveSmall);
		
		this.KentuckyAveSmall = new JButton(Red);
		this.KentuckyAveSmall.setBounds(846, 236, 19, 28);
		this.KentuckyAveSmall.setVisible(false);
		this.KentuckyAveSmall.addActionListener(this);
		panel3.add(this.KentuckyAveSmall);
		
		this.IndianaAveSmall = new JButton(Red);
		this.IndianaAveSmall.setBounds(876, 236, 19, 28);
		this.IndianaAveSmall.setVisible(false);
		this.IndianaAveSmall.addActionListener(this);
		panel3.add(IndianaAveSmall);
		
		this.IllinoisAveSmall = new JButton(Red);
		this.IllinoisAveSmall.setBounds(901, 236, 19, 28);
		this.IllinoisAveSmall.setVisible(false);
		this.IllinoisAveSmall.addActionListener(this);
		panel3.add(this.IllinoisAveSmall);
		
		this.BORRSmall = new JButton(Grey);
		this.BORRSmall.setBounds(825, 213, 19, 28);
		this.BORRSmall.setVisible(false);
		this.BORRSmall.addActionListener(this);
		panel3.add(this.BORRSmall);
		
		this.AtlanticAveSmall = new JButton(Yellow);
		this.AtlanticAveSmall.setBounds(965, 186, 19, 28);
		this.AtlanticAveSmall.setVisible(false);
		this.AtlanticAveSmall.addActionListener(this);
		panel3.add(AtlanticAveSmall);
		
		this.VentorAveSmall = new JButton(Yellow);
		this.VentorAveSmall.setBounds(993, 186, 19, 28);
		this.VentorAveSmall.setVisible(false);
		this.VentorAveSmall.addActionListener(this);
		panel3.add(VentorAveSmall);
		
		this.WWSmall = new JButton(Grey);
		this.WWSmall.setBounds(922, 212, 19, 28);
		this.WWSmall.setVisible(false);
		this.WWSmall.addActionListener(this);
		panel3.add(WWSmall);
		
		this.MarvinGardensSmall = new JButton(Yellow);
		this.MarvinGardensSmall.setBounds(1020, 186, 19, 28);
		this.MarvinGardensSmall.setVisible(false);
		this.MarvinGardensSmall.addActionListener(this);
		panel3.add(MarvinGardensSmall);
		
		this.PacificAveSmall = new JButton(Green);
		this.PacificAveSmall.setBounds(966, 234, 19, 28);
		this.PacificAveSmall.setVisible(false);
		this.PacificAveSmall.addActionListener(this);
		panel3.add(PacificAveSmall);
		
		this.NthCaroSmall = new JButton(Green);
		this.NthCaroSmall.setBounds(994, 234, 19, 28);
		this.NthCaroSmall.setVisible(false);
		this.NthCaroSmall.addActionListener(this);
		panel3.add(NthCaroSmall);
		
		this.PensAveSmall = new JButton(Green);
		this.PensAveSmall.setBounds(1021, 234, 19, 28);
		this.PensAveSmall.setVisible(false);
		this.PensAveSmall.addActionListener(this);
		panel3.add(PensAveSmall);
		
		
		this.ShortLineSmall = new JButton(Grey);
		this.ShortLineSmall.setBounds(943, 212, 19, 28);
		this.ShortLineSmall.setVisible(false);
		this.ShortLineSmall.addActionListener(this);
		panel3.add(ShortLineSmall);
		
		this.ParkPlaceSmall = new JButton(Blue);
		this.ParkPlaceSmall.setBounds(629, 237, 19, 28);
		this.ParkPlaceSmall.setVisible(false);
		this.ParkPlaceSmall.addActionListener(this);
		panel3.add(this.ParkPlaceSmall);
		
		this.BoardWalkSmall = new JButton(Blue);
		this.BoardWalkSmall.setBounds(655, 237, 19, 28);
		this.BoardWalkSmall.setVisible(false);
		this.BoardWalkSmall.addActionListener(this);
		panel3.add(this.BoardWalkSmall);
		
		this.RRSmall = new JButton(Grey);
		this.RRSmall.setBounds(678, 211, 19, 28);
		this.RRSmall.setVisible(false);
		this.RRSmall.addActionListener(this);
		panel3.add(this.RRSmall);
		
		
		gameBoard.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		panel3.add(ShortLine);
		panel3.add(WW);
		panel3.add(BORR);
		panel3.add(PensRR);
		panel3.add(this.ElecComp);
		panel3.add(RR);
		
		panel3.add(Owner);
		panel3.add(this.BoardWalk);
		panel3.add(this.ParkPlace);
		panel3.add(this.PensAve);
		panel3.add(this.NthCaro);
		panel3.add(this.PacificAve);
		panel3.add(this.MarvinGardens);
		panel3.add(this.VentorAve);
		panel3.add(this.AtlanticAve);
		panel3.add(this.IllinoisAve);
		panel3.add(this.IndianaAve);
		panel3.add(this.KentuckyAve);
		panel3.add(this.NewYorkAve);
		panel3.add(this.TennesseAve);
		panel3.add(James);
		panel3.add(VirginiaAve);
		panel3.add(StatesAve);
		panel3.add(Charlse);
		panel3.add(ConneticutAve);
		panel3.add(VermontAve);
		panel3.add(OrientalAve);
		panel3.add(BalticAve);
		panel3.add(BuyTittle);
		panel3.add(Dice1A);
		panel3.add(Dice1B);
		panel3.add(Dice2A);
		panel3.add(Dice2B);
		panel3.add(Dice3A);
		panel3.add(Dice3B);
		panel3.add(Dice4A);
		panel3.add(Dice4B);
		panel3.add(Dice5A);
		panel3.add(Dice5B);
		panel3.add(Dice6A);
		panel3.add(Dice6B);
		panel3.add(MedAve);

		for (int i = 0; i < players.length; i++) {
			if (players[i].getToken() == 1) {
				carToken.setVisible(true);

			}
			if (players[i].getToken() == 2) {
				hatToken.setVisible(true);

			}
			if (players[i].getToken() == 3) {
				bellToken.setVisible(true);

			}

			if (players[i].getToken() == 4) {
				dogToken.setVisible(true);

			}
			if (players[i].getToken() == 5) {
				shoeToken.setVisible(true);

			}
			if (players[i].getToken() == 6) {
				shipToken.setVisible(true);

			}
			if (players[i].getToken() == 7) {
				lagayanbatoToken.setVisible(true);

			}
			if (players[i].getToken() == 8) {
				planchaToken.setVisible(true);

			}
		}

		int firstImageTurn = players[0].getToken();

		if (firstImageTurn == 1) {
			carimageLabel.setVisible(true);
		}
		if (firstImageTurn == 2) {
			hatimageLabel.setVisible(true);
		}
		if (firstImageTurn == 3) {
			bellimageLabel.setVisible(true);
		}
		if (firstImageTurn == 4) {
			dogimageLabel.setVisible(true);
		}
		if (firstImageTurn == 5) {
			shoeimageLabel.setVisible(true);
		}
		if (firstImageTurn == 6) {
			shipimageLabel.setVisible(true);
		}
		if (firstImageTurn == 7) {
			lagayanbatoimageLabel.setVisible(true);
		}
		if (firstImageTurn == 8) {
			planchaimageLabel.setVisible(true);
		}
		/*
		 * 1=car 2=hat 3=bell 4=dog 5=shoe 6=ship 7=lagayanbato 8=Plancha
		 */

		panel3.add(carimageLabel);
		panel3.add(hatimageLabel);
		panel3.add(bellimageLabel);
		panel3.add(dogimageLabel);
		panel3.add(shoeimageLabel);
		panel3.add(shipimageLabel);
		panel3.add(lagayanbatoimageLabel);
		panel3.add(planchaimageLabel);

		gameBoard.add(panel3);
		gameBoard.setVisible(true);

	}

	// O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//

	ItemListener listener = new ItemListener() {
		public void itemStateChanged(ItemEvent e) {

			Object source1 = e.getSource();
			int state = e.getStateChange();
			

			if (source1 == car && state == ItemEvent.SELECTED) {
				hatImageContainer.setVisible(false);
				bellImageContainer.setVisible(false);
				dogImageContainer.setVisible(false);
				shoeImageContainer.setVisible(false);
				shipImageContainer.setVisible(false);
				lagayanbatoImageContainer.setVisible(false);
				planchaImageContainer.setVisible(false);

				playerToken = 1;
				carImageContainer.setVisible(true);

			}
			if (source1 == car && state == ItemEvent.DESELECTED) {

				carImageContainer.setVisible(false);
			}

			if (source1 == hat && state == ItemEvent.SELECTED) {
				carImageContainer.setVisible(false);
				bellImageContainer.setVisible(false);
				dogImageContainer.setVisible(false);
				shoeImageContainer.setVisible(false);
				shipImageContainer.setVisible(false);
				lagayanbatoImageContainer.setVisible(false);
				planchaImageContainer.setVisible(false);

				playerToken = 2;
				hatImageContainer.setVisible(true);

			}

			if (source1 == hat && state == ItemEvent.DESELECTED) {

				hatImageContainer.setVisible(false);
			}

			if (source1 == bell && state == ItemEvent.SELECTED) {
				carImageContainer.setVisible(false);
				hatImageContainer.setVisible(false);
				dogImageContainer.setVisible(false);
				shoeImageContainer.setVisible(false);
				shipImageContainer.setVisible(false);
				lagayanbatoImageContainer.setVisible(false);
				planchaImageContainer.setVisible(false);

				playerToken = 3;
				bellImageContainer.setVisible(true);

			}

			if (source1 == bell && state == ItemEvent.DESELECTED) {

				bellImageContainer.setVisible(false);
			}

			if (source1 == dog && state == ItemEvent.SELECTED) {
				carImageContainer.setVisible(false);
				hatImageContainer.setVisible(false);
				bellImageContainer.setVisible(false);
				shoeImageContainer.setVisible(false);
				shipImageContainer.setVisible(false);
				lagayanbatoImageContainer.setVisible(false);
				planchaImageContainer.setVisible(false);

				playerToken = 4;
				dogImageContainer.setVisible(true);

			}

			if (source1 == dog && state == ItemEvent.DESELECTED) {

				dogImageContainer.setVisible(false);
			}

			if (source1 == shoe && state == ItemEvent.SELECTED) {

				carImageContainer.setVisible(false);
				hatImageContainer.setVisible(false);
				bellImageContainer.setVisible(false);
				dogImageContainer.setVisible(false);
				shipImageContainer.setVisible(false);
				lagayanbatoImageContainer.setVisible(false);
				planchaImageContainer.setVisible(false);

				playerToken = 5;
				shoeImageContainer.setVisible(true);

			}

			if (source1 == shoe && state == ItemEvent.DESELECTED) {

				shoeImageContainer.setVisible(false);
			}

			if (source1 == ship && state == ItemEvent.SELECTED) {

				carImageContainer.setVisible(false);
				hatImageContainer.setVisible(false);
				bellImageContainer.setVisible(false);
				dogImageContainer.setVisible(false);
				shoeImageContainer.setVisible(false);
				lagayanbatoImageContainer.setVisible(false);
				planchaImageContainer.setVisible(false);

				playerToken = 6;

				shipImageContainer.setVisible(true);

			}

			if (source1 == ship && state == ItemEvent.DESELECTED) {

				shipImageContainer.setVisible(false);
			}

			if (source1 == lagayanbato && state == ItemEvent.SELECTED) {

				carImageContainer.setVisible(false);
				hatImageContainer.setVisible(false);
				bellImageContainer.setVisible(false);
				dogImageContainer.setVisible(false);
				shoeImageContainer.setVisible(false);
				shipImageContainer.setVisible(false);
				planchaImageContainer.setVisible(false);

				playerToken = 7;
				lagayanbatoImageContainer.setVisible(true);

			}

			if (source1 == lagayanbato && state == ItemEvent.DESELECTED) {

				lagayanbatoImageContainer.setVisible(false);
			}

			if (source1 == plancha && state == ItemEvent.SELECTED) {

				carImageContainer.setVisible(false);
				hatImageContainer.setVisible(false);
				bellImageContainer.setVisible(false);
				dogImageContainer.setVisible(false);
				shoeImageContainer.setVisible(false);
				shipImageContainer.setVisible(false);
				lagayanbatoImageContainer.setVisible(false);

				playerToken = 8;
				planchaImageContainer.setVisible(true);

			}

			if (source1 == plancha && state == ItemEvent.DESELECTED) {

				planchaImageContainer.setVisible(false);
			}
		}

	};

	// O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//
	public void actionPerformed(ActionEvent e) {
		Object source = e.getSource();
//dan
		if(source ==this.cheat1){
			players[board.getTurn()].setMoney(100);
			this.moneyLabel.setText(" $ " +players[board.getTurn()].getMoney());
		}
		if(source==trade){
			System.out.println("HI");
			this.gameBoard.setEnabled(false);
			tradeGUI trade = new tradeGUI(this.property,this.players,this.board,this.gameBoard,this.deeds);
		
			
		}
		if(source==MedAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(true);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[0].getOwner());
		}
		
		if(source==BalticAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(true);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[1].getOwner());
		}
		if(source==this.RR){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(true);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[2].getOwner());
		}
		if(source==this.OrientalAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(true);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[3].getOwner());
		}
		
		if(source==this.VermontAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(true);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[4].getOwner());
		}
		
		if(source==this.ConneticutAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(true);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[5].getOwner());
		}
		
		if(source==this.Charlse){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(true);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[6].getOwner());
		}
		if(source==this.ElecComp){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(true);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[7].getOwner());
		}
		
		if(source==this.StatesAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(true);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[8].getOwner());
		}
		
		if(source==this.VirginiaAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(true);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[9].getOwner());
		}
		if(source==this.PensRR){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(true);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[10].getOwner());
		}
		
		if(source==this.James){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(true);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[11].getOwner());
		}
		
		if(source==this.TennesseAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(true);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[12].getOwner());
		}
		
		if(source==this.NewYorkAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(true);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[13].getOwner());
		}
		
		if(source==this.KentuckyAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(true);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[14].getOwner());
		}
		
		if(source==this.IndianaAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(true);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[15].getOwner());
		}
		
		if(source==this.IllinoisAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);

			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(true);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[16].getOwner());
		}
		if(source==this.BORR){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(true);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[17].getOwner());
		}
		
		if(source==this.AtlanticAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(true);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[18].getOwner());
		}
		if(source==this.VentorAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(true);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[19].getOwner());
		}
		
		if(source==this.WW){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(true);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[20].getOwner());
		}
		
		if(source==this.MarvinGardens){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(true);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[21].getOwner());
		}
		if(source==this.PacificAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(true);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[22].getOwner());
		}
		if(source==this.NthCaro){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(true);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
	
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[23].getOwner());
		}
		if(source==this.PensAve){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(true);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[24].getOwner());
		}
		
		if(source==this.ShortLine){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(true);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[25].getOwner());
		}
		
		if(source==this.ParkPlace){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(true);
			this.BoardWalkcard.setVisible(false);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[26].getOwner());
		}
		if(source==this.BoardWalk){
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(true);
			Owner.setVisible(true);
			Owner.setText("Owner:"+deeds[27].getOwner());
		}


		
		if (source == continueButt) {
			//BGmusic();
			this.boarGameNa();
		}

		if (source == testbut) {
			//BGmusic();
			numberOfPlayers = 1;
			board.createPlayer(1);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();

		}
		if(source==this.house){
			deeds[this.sellPro].setHouse(1);
			this.sellPro=0;
			frames.setVisible(false);
			this.gameBoard.setEnabled(true);
		}
		if(source==this.hotel){
			deeds[this.sellPro].setHotel(1);
			this.sellPro=0;
			frames.setVisible(false);
			this.gameBoard.setEnabled(true);
		}

		if (source == multibut) {
		//	BGmusic();
			testbut.setVisible(false);
			multibut.setVisible(false);
			twoPlayer.setVisible(true);
			threePlayer.setVisible(true);
			fourPlayer.setVisible(true);
			fivePlayer.setVisible(true);
			sixPlayer.setVisible(true);
			sevenPlayer.setVisible(true);
			eightPlayer.setVisible(true);
		}

		if (source == twoPlayer) {
			//BGmusic();
			numberOfPlayers = 2;
			board.createPlayer(2);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();
		}

		if (source == threePlayer) {
		//	BGmusic();
			numberOfPlayers = 3;
			board.createPlayer(3);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();
		}

		if (source == fourPlayer) {
			//BGmusic();
			numberOfPlayers = 4;
			board.createPlayer(4);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();
		}

		if (source == fivePlayer) {
			//BGmusic();
			numberOfPlayers = 5;
			board.createPlayer(5);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();
		}

		if (source == sixPlayer) {
		//	BGmusic();
			numberOfPlayers = 6;
			board.createPlayer(6);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();
		}

		if (source == sevenPlayer) {
		//	BGmusic();
			numberOfPlayers = 7;
			board.createPlayer(7);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();
		}

		if (source == eightPlayer) {
		//	BGmusic();
			numberOfPlayers = 8;
			board.createPlayer(8);
			this.players = board.getPlayers();
			frame.setVisible(false);
			this.testmode();
		}

		if (source == chooseTokenBut && playerToken != 0) {
		//	BGmusic();
			int TokenChecker = 0;
			for (int i = 0; i < players.length; i++) {
				if (playerToken == players[i].getToken()) {
					TokenChecker = 1;
				}
			}

			if (TokenChecker == 0) {

				if (playerToken == 1) {
					carLabel.setForeground(Color.red);
				}
				if (playerToken == 2) {
					hatLabel.setForeground(Color.red);
				}
				if (playerToken == 3) {
					bellLabel.setForeground(Color.red);
				}
				if (playerToken == 4) {
					dogLabel.setForeground(Color.red);
				}
				if (playerToken == 5) {
					shoeLabel.setForeground(Color.red);
				}
				if (playerToken == 6) {
					shipLabel.setForeground(Color.red);
				}
				if (playerToken == 7) {
					lagayanbatoLabel.setForeground(Color.red);
				}
				if (playerToken == 8) {
					planchaLabel.setForeground(Color.red);
				}
				for (int i = 0; i < players.length; i++) {
					if (players[i].getToken() == 0) {
						players[i].setToken(playerToken);
						i = players.length;
					}
				}
				checker1 = checker1 + 1;
				TokenLabelturn = TokenLabelturn + 1;
				chooseTokenLabel.setText("Player " + TokenLabelturn
						+ " please choose your token:");
				if (checker1 == numberOfPlayers) {
					this.boarGameNa();
				}
			}

		}
		if(source==this.sell){
			this.frames.setVisible(false);
			this.gameBoard.setEnabled(true);
			players[board.getTurn()].mortgage(this.sellPro);
			this.moneyLabel.setText("$ "+players[board.getTurn()].getMoney());
			this.sellPro=0;
		}
		if(source==this.unmortgage){
			this.frames.setVisible(false);
			this.gameBoard.setEnabled(true);
			players[board.getTurn()].unmortgage(this.sellPro);
			this.moneyLabel.setText("$ "+players[board.getTurn()].getMoney());
			this.sellPro=0;
		}
		if(source==this.button){
			this.sellPro=0;
			this.frames.setVisible(false);
			this.gameBoard.setEnabled(true);
		}
		//nad
		if(source==this.MedSmall){
			this.sellPro=0;
			this.ShowCard(0);
		}
		if(source==this.BalticAveSmall){
			this.sellPro=1;
			this.ShowCard(1);
		}
		if(source==this.RRSmall){
			this.sellPro=2;
			this.ShowCard(2);
		}
		if(source==this.OrientalAveSmall){
			this.sellPro=3;
			this.ShowCard(3);
		}
		if(source==this.VermontAveSmall){
			this.sellPro=4;
			this.ShowCard(4);
		}
		if(source==this.ConneticutAveSmall){
			this.sellPro=5;
			this.ShowCard(5);
		}
		if(source==this.CharlseSmall){
			this.sellPro=6;
			this.ShowCard(6);
		}
		if(source==this.ElecCompSmall){
			this.sellPro=7;
			this.ShowCard(7);
		}
		if(source==this.StatesAveSmall){
			this.sellPro=8;
			this.ShowCard(8);
		}
		if(source==this.VirginiaAveSmall){
			this.sellPro=9;
			this.ShowCard(9);
		}
		if(source==this.PensRRSmall){
			this.sellPro=10;
			this.ShowCard(10);
		}
		if(source==this.JamesSmall){
			this.sellPro=11;
			this.ShowCard(11);
		}
		if(source==this.TennesseAveSmall){
			this.sellPro=12;
			this.ShowCard(12);
		}
		if(source==this.NewYorkAveSmall){
			this.sellPro=13;
			this.ShowCard(13);
		}
		if(source==this.KentuckyAveSmall){
			this.sellPro=14;
			this.ShowCard(14);
		}
		if(source==this.IndianaAveSmall){
			this.sellPro=15;
			this.ShowCard(15);
		}
		if(source==this.IllinoisAveSmall){
			this.sellPro=16;
			this.ShowCard(16);
		}
		if(source==this.BORRSmall){
			this.sellPro=17;
			this.ShowCard(17);
		}
		if(source==this.AtlanticAveSmall){
			this.sellPro=18;
			this.ShowCard(18);
		}
		if(source==this.VentorAveSmall){
			this.sellPro=19;
			this.ShowCard(19);
		}
		if(source==this.WWSmall){
			this.sellPro=20;
			this.ShowCard(20);
		}
		if(source==this.MarvinGardensSmall){
			this.sellPro=21;
			this.ShowCard(21);
		}
		if(source==this.PacificAveSmall){
			this.sellPro=22;
			this.ShowCard(22);
		}
		if(source==this.NthCaroSmall){
			this.sellPro=23;
			this.ShowCard(23);
		}
		if(source==this.PensAveSmall){
			this.sellPro=24;
			this.ShowCard(24);
		}
		if(source==this.ShortLineSmall){
			this.sellPro=25;
			this.ShowCard(25);
		}
		if(source==this.ParkPlaceSmall){
			this.sellPro=26;
			this.ShowCard(26);
		}
		if(source==this.BoardWalkSmall){
			this.sellPro=27;
			this.ShowCard(27);
		}
		if(source==pay){
			
			pay.setVisible(false);
			this.useGetOut.setVisible(false);
			players[board.getTurn()].setMoney(-50);
			String money = String.valueOf(players[board.getTurn()].getMoney());
			this.moneyLabel.setText("$ "+money);
			players[board.getTurn()].setGetOutOfJail(0);
			
		}
		if (source == this.dobolroll) {
			this.cheat1.setVisible(false);
			pay.setVisible(false);
			this.useGetOut.setVisible(false);
			this.dobolroll.setVisible(false);			
		//	BGmusic();
			diceLabel.setVisible(false);
			diceLabel2.setVisible(false);
			board.dice.rollDice();
			
		    dice1 = board.dice.getDice1();
			dice2=dice1;
		
		
			
			
			
			totalDice = dice1 + dice2;
			players[board.turn].setPreviousPosition();
			players[board.turn].setPosition(totalDice, false);

			if (dice1 == 0 && dice2 == 0) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);

			}

			if (dice1 == 0 && dice2 == 1) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 1) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 2) {
				Dice1A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 3) {
				Dice1A.setVisible(true);
				Dice3B.setVisible(true);
			}
			if (dice1 == 0 && dice2 == 4) {
				Dice1A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 5) {
				Dice1A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 6) {
				Dice1A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 0) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 1) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 2) {
				Dice1A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 3) {
				Dice1A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 4) {
				Dice1A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 5) {
				Dice1A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 6) {
				Dice1A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 0) {
				Dice2A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 1) {
				Dice2A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 2) {
				Dice2A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 3) {
				Dice2A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 4) {
				Dice2A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 5) {
				Dice2A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 6) {
				Dice2A.setVisible(true);
				Dice6B.setVisible(true);
			}
			if (dice1 == 3 && dice2 == 0) {
				Dice3A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 1) {
				Dice3A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 2) {
				Dice3A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 3) {
				Dice3A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 4) {
				Dice3A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 5) {
				Dice3A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 6) {
				Dice3A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 0) {
				Dice4A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 1) {
				Dice4A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 2) {
				Dice4A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 3) {
				Dice4A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 4) {
				Dice4A.setVisible(true);
				Dice4B.setVisible(true);

			}

			if (dice1 == 4 && dice2 == 5) {
				Dice4A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 6) {
				Dice4A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 0) {
				Dice5A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 1) {
				Dice5A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 2) {
				Dice5A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 3) {
				Dice5A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 4) {
				Dice5A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 5) {
				Dice5A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 6) {
				Dice5A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 0) {
				Dice6A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 1) {
				Dice6A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 2) {
				Dice6A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 3) {
				Dice6A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 4) {
				Dice6A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 5) {
				Dice6A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 6) {
				Dice6A.setVisible(true);
				Dice6B.setVisible(true);
			}

			rollDice.setVisible(false);
			for (int counterA = threadCounter; counterA == threadCounter; counterA++) {
				t1[counterA] = new Thread(this);
				t1[counterA].start();

			}
			threadCounter = threadCounter + 1;

		}
		if (source == rollDice) {
			if(players.length==1){
			this.dobolroll.setVisible(false);
			this.cheat1.setVisible(false);
			}
			pay.setVisible(false);
			this.useGetOut.setVisible(false);
			
		//	BGmusic();
			diceLabel.setVisible(false);
			diceLabel2.setVisible(false);
			board.dice.rollDice();
		    dice1 = board.dice.getDice1();
			dice2 = board.dice.getDice2();
			board.ThreeDiceChecker(dice1,dice2);
		
			
			
			
			totalDice = dice1 + dice2;
			players[board.turn].setPreviousPosition();
			players[board.turn].setPosition(totalDice, false);

			if (dice1 == 0 && dice2 == 0) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);

			}

			if (dice1 == 0 && dice2 == 1) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 1) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 2) {
				Dice1A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 3) {
				Dice1A.setVisible(true);
				Dice3B.setVisible(true);
			}
			if (dice1 == 0 && dice2 == 4) {
				Dice1A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 5) {
				Dice1A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 0 && dice2 == 6) {
				Dice1A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 0) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 1) {
				Dice1A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 2) {
				Dice1A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 3) {
				Dice1A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 4) {
				Dice1A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 5) {
				Dice1A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 1 && dice2 == 6) {
				Dice1A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 0) {
				Dice2A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 1) {
				Dice2A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 2) {
				Dice2A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 3) {
				Dice2A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 4) {
				Dice2A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 5) {
				Dice2A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 2 && dice2 == 6) {
				Dice2A.setVisible(true);
				Dice6B.setVisible(true);
			}
			if (dice1 == 3 && dice2 == 0) {
				Dice3A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 1) {
				Dice3A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 2) {
				Dice3A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 3) {
				Dice3A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 4) {
				Dice3A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 5) {
				Dice3A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 3 && dice2 == 6) {
				Dice3A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 0) {
				Dice4A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 1) {
				Dice4A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 2) {
				Dice4A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 3) {
				Dice4A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 4) {
				Dice4A.setVisible(true);
				Dice4B.setVisible(true);

			}

			if (dice1 == 4 && dice2 == 5) {
				Dice4A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 4 && dice2 == 6) {
				Dice4A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 0) {
				Dice5A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 1) {
				Dice5A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 2) {
				Dice5A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 3) {
				Dice5A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 4) {
				Dice5A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 5) {
				Dice5A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 5 && dice2 == 6) {
				Dice5A.setVisible(true);
				Dice6B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 0) {
				Dice6A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 1) {
				Dice6A.setVisible(true);
				Dice1B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 2) {
				Dice6A.setVisible(true);
				Dice2B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 3) {
				Dice6A.setVisible(true);
				Dice3B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 4) {
				Dice6A.setVisible(true);
				Dice4B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 5) {
				Dice6A.setVisible(true);
				Dice5B.setVisible(true);
			}

			if (dice1 == 6 && dice2 == 6) {
				Dice6A.setVisible(true);
				Dice6B.setVisible(true);
			}

			rollDice.setVisible(false);
			for (int counterA = threadCounter; counterA == threadCounter; counterA++) {
				t1[counterA] = new Thread(this);
				t1[counterA].start();

			}
			threadCounter = threadCounter + 1;

		}

		if (source == rollDiceOk) {
			if(players.length==1){
				this.cheat1.setVisible(true);
				this.dobolroll.setVisible(true);
			}
			trade.setVisible(false);
			this.MrMonopoly.setVisible(true);
			Com1.setVisible(false);
			Com2.setVisible(false);
			Com3.setVisible(false);
			Com4.setVisible(false);
			Com5.setVisible(false);
			Com6.setVisible(false);
			Com7.setVisible(false);
			Com8.setVisible(false);
			Com9.setVisible(false);
			Com10.setVisible(false);
			Com11.setVisible(false);
			Com12.setVisible(false);
			Com13.setVisible(false);
			Com14.setVisible(false);
			Com15.setVisible(false);
			Chance1.setVisible(false);
			Chance2.setVisible(false);
			Chance3.setVisible(false);
			Chance4.setVisible(false);
			Chance5.setVisible(false);
			Chance6.setVisible(false);
			Chance7.setVisible(false);
			Chance8.setVisible(false);
			Chance9.setVisible(false);
			Chance10.setVisible(false);
			Chance11.setVisible(false);
			Chance12.setVisible(false);
			Chance13.setVisible(false);
			Chance14.setVisible(false);
			Chance15.setVisible(false);
			Chance16.setVisible(false);
			Chance17.setVisible(false);
			this.MedSmall.setVisible(false);
			this.BalticAveSmall.setVisible(false);
			this.RRSmall.setVisible(false);
			this.OrientalAveSmall.setVisible(false);
			this.VermontAveSmall.setVisible(false);
			this.ConneticutAveSmall.setVisible(false);
			this.CharlseSmall.setVisible(false);
			this.ElecCompSmall.setVisible(false);
			this.StatesAveSmall.setVisible(false);
			this.VirginiaAveSmall.setVisible(false);
			this.PensRRSmall.setVisible(false);
			this.JamesSmall.setVisible(false);
			this.TennesseAveSmall.setVisible(false);
			this.NewYorkAveSmall.setVisible(false);
			this.KentuckyAveSmall.setVisible(false);
			this.IndianaAveSmall.setVisible(false);
			this.IllinoisAveSmall.setVisible(false);
			this.BORRSmall.setVisible(false);
			this.AtlanticAveSmall.setVisible(false);
			this.VentorAveSmall.setVisible(false);
			this.WWSmall.setVisible(false);
			this.MarvinGardensSmall.setVisible(false);
			this.PacificAveSmall.setVisible(false);
			this.NthCaroSmall.setVisible(false);
			this.PensAveSmall.setVisible(false);
			this.ShortLineSmall.setVisible(false);
			this.ParkPlaceSmall.setVisible(false);
			this.BoardWalkSmall.setVisible(false);
			
			this.MedAveCard.setVisible(false);
			this.BalticAvecard.setVisible(false);
			this.RRCard.setVisible(false);
			this.OrientalAvecard.setVisible(false);
			this.VermontAveCard.setVisible(false);
			this.ConneticutAveCard.setVisible(false);
			this.CharlseCard.setVisible(false);
			this.ElecCompCard.setVisible(false);
			this.StatesAveCard.setVisible(false);
			this.VirginiaAveCard.setVisible(false);
			this.PensRRCard.setVisible(false);
			this.JamesCard.setVisible(false);
			this.TennesseAveCard.setVisible(false);
			this.NewYorkAveCard.setVisible(false);
			this.KentuckyAveCard.setVisible(false);
			this.IndianaAveCard.setVisible(false);
			this.IllinoisAveCard.setVisible(false);
			this.BORRCard.setVisible(false);
			this.AtlanticAveCard.setVisible(false);
			this.VentorAveCard.setVisible(false);
			this.WWCard.setVisible(false);
			this.MarvinGardenCard.setVisible(false);
			this.PacificAvecard.setVisible(false);
			this.NthCaroCard.setVisible(false);
			this.PensAvecard.setVisible(false);
			this.ShortLineCard.setVisible(false);
			this.ParkPlacecard.setVisible(false);
			this.BoardWalkcard.setVisible(false);
			this.Owner.setVisible(false);
			Sorry.setVisible(false);
			diceLabel.setVisible(true);
			diceLabel2.setVisible(true);
			BuyTittle.setVisible(false);
		    board.nextTurn(this.dice1,this.dice2);
		   
			if(players[board.getTurn()].getIsJail()==true){
				pay.setVisible(true);
				this.useGetOut.setVisible(true);
			}
			
			String PName=players[board.getTurn()].getName();
			
			for(int i=0;i<deeds.length;i++){
			if(deeds[i].getOwner()==PName){
			if(i==0){
				this.MedSmall.setVisible(true);
			}else{
			if(i==1){
				this.BalticAveSmall.setVisible(true);
			}else{
				if(i==2){
					this.RRSmall.setVisible(true);
				}else{
					if(i==3){
						this.OrientalAveSmall.setVisible(true);
					}else{
						if(i==4){
							this.VermontAveSmall.setVisible(true);
						}else{
							if(i==5){
								this.ConneticutAveSmall.setVisible(true);
							}else{
								if(i==6){
									this.CharlseSmall.setVisible(true);
								}else{
									if(i==7){
										this.ElecCompSmall.setVisible(true);
									}else{
										if(i==8){
											this.StatesAveSmall.setVisible(true);
										}else{
											if(i==9){
												this.VirginiaAveSmall.setVisible(true);
											}else{
												if(i==10){
													this.PensRRSmall.setVisible(true);
												}else{
													if(i==11){
														this.JamesSmall.setVisible(true);
													}else{
														if(i==12){
															this.TennesseAveSmall.setVisible(true);
														}else{
															if(i==13){
																this.NewYorkAveSmall.setVisible(true);
															}else{
																if(i==14){
																	this.KentuckyAveSmall.setVisible(true);
																}else{
					if(i==15){
						this.IndianaAveSmall.setVisible(true);
					}else{
						if(i==16){
							this.IllinoisAveSmall.setVisible(true);
						}else{
							if(i==17){
								this.BORRSmall.setVisible(true);
							}else{
								if(i==18){
									this.AtlanticAveSmall.setVisible(true);
								}else{
									if(i==19){
										this.VentorAveSmall.setVisible(true);
									}else{
										if(i==20){
											this.WWSmall.setVisible(true);
										}else{
											if(i==21){
												this.MarvinGardensSmall.setVisible(true);
											}else{
												if(i==22){
													this.PacificAveSmall.setVisible(true);
												}else{
													if(i==23){
														this.NthCaroSmall.setVisible(true);
													}else{
														if(i==24){
															this.PensAveSmall.setVisible(true);
														}else{
															if(i==25){
																this.ShortLineSmall.setVisible(true);
															}else{
																if(i==26){
																	this.ParkPlaceSmall.setVisible(true);
																}else{
																	if(i==27){
																		this.BoardWalkSmall.setVisible(true);
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
				
			}
			}
			}
		    

			//BGmusic();
			int Pturn = board.getTurn() + 1;
			int money = players[board.getTurn()].getMoney();
			String money1 = String.valueOf(money);
			Player.setText(players[board.getTurn()].getName());
			int singlemoney2 = players[0].getMoney();
			String money2 = String.valueOf(singlemoney2);

			if (players.length != 1) {
				moneyLabel.setText(" $ " + money1);
			} else {
				moneyLabel.setText(" $ " + money2);
			}

			if (players[board.getTurn()].getToken() == 1) {
				carimageLabel.setVisible(true);
				hatimageLabel.setVisible(false);
				bellimageLabel.setVisible(false);
				dogimageLabel.setVisible(false);
				shoeimageLabel.setVisible(false);
				shipimageLabel.setVisible(false);
				lagayanbatoimageLabel.setVisible(false);
				planchaimageLabel.setVisible(false);
			}
			if (players[board.getTurn()].getToken() == 2) {
				carimageLabel.setVisible(false);
				hatimageLabel.setVisible(true);
				bellimageLabel.setVisible(false);
				dogimageLabel.setVisible(false);
				shoeimageLabel.setVisible(false);
				shipimageLabel.setVisible(false);
				lagayanbatoimageLabel.setVisible(false);
				planchaimageLabel.setVisible(false);
			}
			if (players[board.getTurn()].getToken() == 3) {
				carimageLabel.setVisible(false);
				hatimageLabel.setVisible(false);
				bellimageLabel.setVisible(true);
				dogimageLabel.setVisible(false);
				shoeimageLabel.setVisible(false);
				shipimageLabel.setVisible(false);
				lagayanbatoimageLabel.setVisible(false);
				planchaimageLabel.setVisible(false);
			}
			if (players[board.getTurn()].getToken() == 4) {
				carimageLabel.setVisible(false);
				hatimageLabel.setVisible(false);
				bellimageLabel.setVisible(false);
				dogimageLabel.setVisible(true);
				shoeimageLabel.setVisible(false);
				shipimageLabel.setVisible(false);
				lagayanbatoimageLabel.setVisible(false);
				planchaimageLabel.setVisible(false);
			}
			if (players[board.getTurn()].getToken() == 5) {
				carimageLabel.setVisible(false);
				hatimageLabel.setVisible(false);
				bellimageLabel.setVisible(false);
				dogimageLabel.setVisible(false);
				shoeimageLabel.setVisible(true);
				shipimageLabel.setVisible(false);
				lagayanbatoimageLabel.setVisible(false);
				planchaimageLabel.setVisible(false);
			}
			if (players[board.getTurn()].getToken() == 6) {
				carimageLabel.setVisible(false);
				hatimageLabel.setVisible(false);
				bellimageLabel.setVisible(false);
				dogimageLabel.setVisible(false);
				shoeimageLabel.setVisible(false);
				shipimageLabel.setVisible(true);
				lagayanbatoimageLabel.setVisible(false);
				planchaimageLabel.setVisible(false);
			}
			if (players[board.getTurn()].getToken() == 7) {
				carimageLabel.setVisible(false);
				hatimageLabel.setVisible(false);
				bellimageLabel.setVisible(false);
				dogimageLabel.setVisible(false);
				shoeimageLabel.setVisible(false);
				shipimageLabel.setVisible(false);
				lagayanbatoimageLabel.setVisible(true);
				planchaimageLabel.setVisible(false);
			}
			if (players[board.getTurn()].getToken() == 8) {
				carimageLabel.setVisible(false);
				hatimageLabel.setVisible(false);
				bellimageLabel.setVisible(false);
				dogimageLabel.setVisible(false);
				shoeimageLabel.setVisible(false);
				shipimageLabel.setVisible(false);
				lagayanbatoimageLabel.setVisible(false);
				planchaimageLabel.setVisible(true);
			}

			rollDiceOk.setVisible(false);
			rollDice.setVisible(true);

		}
		

		if (source == BuyTittle) {
			
			String PName = players[board.getTurn()].getName();
			
			boolean bool = players[board.getTurn()].buyDeed();
			if(bool==false){
				Sorry.setVisible(true);
				Sorry.setText("Sorry Already Owned ");
			}else{
				
				
				
				  for(int i=0;i<28;i++){
					if(deeds[i].getPosition()==players[board.getTurn()].getPosition()) {
						break;
					}
					if(deeds[i].getGroup()==1){
						if(deeds[0].getOwner()==deeds[1].getOwner()){
							deeds[0].ownAllColorGroup();
							deeds[1].ownAllColorGroup();
						}	
					}
					
					if(deeds[i].getGroup()==2){
						if(deeds[3].getOwner()==deeds[4].getOwner()&&deeds[3].getOwner()==deeds[5].getOwner()&&deeds[4].getOwner()==deeds[5].getOwner()){
							deeds[3].ownAllColorGroup();
							deeds[4].ownAllColorGroup();
							deeds[5].ownAllColorGroup();
						}	
					}
					
					
					if(deeds[i].getGroup()==3){
						if(deeds[6].getOwner()==deeds[8].getOwner()&&deeds[6].getOwner()==deeds[9].getOwner()&&deeds[9].getOwner()==deeds[8].getOwner()){
							deeds[6].ownAllColorGroup();
							deeds[9].ownAllColorGroup();
							deeds[8].ownAllColorGroup();
						}	
					}
					if(deeds[i].getGroup()==4){
						if(deeds[11].getOwner()==deeds[12].getOwner()&&deeds[11].getOwner()==deeds[13].getOwner()&&deeds[12].getOwner()==deeds[13].getOwner()){
							deeds[11].ownAllColorGroup();
							deeds[12].ownAllColorGroup();
							deeds[13].ownAllColorGroup();
						}	
					}
					if(deeds[i].getGroup()==5){
						if(deeds[14].getOwner()==deeds[15].getOwner()&&deeds[14].getOwner()==deeds[16].getOwner()&&deeds[15].getOwner()==deeds[16].getOwner()){
							deeds[14].ownAllColorGroup();
							deeds[15].ownAllColorGroup();
							deeds[16].ownAllColorGroup();
						}	
					}
					if(deeds[i].getGroup()==6){
						if(deeds[18].getOwner()==deeds[19].getOwner()&&deeds[18].getOwner()==deeds[21].getOwner()&&deeds[19].getOwner()==deeds[21].getOwner()){
							deeds[18].ownAllColorGroup();
							deeds[19].ownAllColorGroup();
							deeds[21].ownAllColorGroup();
						}	
					}
					if(deeds[i].getGroup()==7){
						if(deeds[22].getOwner()==deeds[23].getOwner()&&deeds[22].getOwner()==deeds[24].getOwner()&&deeds[23].getOwner()==deeds[24].getOwner()){
							deeds[22].ownAllColorGroup();
							deeds[23].ownAllColorGroup();
							deeds[24].ownAllColorGroup();
						}	
					}
					if(deeds[i].getGroup()==8){
						if(deeds[26].getOwner()==deeds[27].getOwner()){
							deeds[26].ownAllColorGroup();
							deeds[27].ownAllColorGroup();
							
						}	
					}
					
				  }
				  
				  
				  
				  
				for(int i=0;i<deeds.length;i++){
					if(deeds[i].getOwner()==PName){
					if(i==0){
						this.MedSmall.setVisible(true);
					}else{
					if(i==1){
						this.BalticAveSmall.setVisible(true);
					}else{
						if(i==2){
							this.RRSmall.setVisible(true);
						}else{
							if(i==3){
								this.OrientalAveSmall.setVisible(true);
							}else{
								if(i==4){
									this.VermontAveSmall.setVisible(true);
								}else{
									if(i==5){
										this.ConneticutAveSmall.setVisible(true);
									}else{
										if(i==6){
											this.CharlseSmall.setVisible(true);
										}else{
											if(i==7){
												this.ElecCompSmall.setVisible(true);
											}else{
												if(i==8){
													this.StatesAveSmall.setVisible(true);
												}else{
													if(i==9){
														this.VirginiaAveSmall.setVisible(true);
													}else{
														if(i==10){
															this.PensRRSmall.setVisible(true);
														}else{
															if(i==11){
																this.JamesSmall.setVisible(true);
															}else{
																if(i==12){
																	this.TennesseAveSmall.setVisible(true);
																}else{
																	if(i==13){
																		this.NewYorkAveSmall.setVisible(true);
																	}else{
																		if(i==14){
																			this.KentuckyAveSmall.setVisible(true);
																		}else{
							if(i==15){
								this.IndianaAveSmall.setVisible(true);
							}else{
								if(i==16){
									this.IllinoisAveSmall.setVisible(true);
								}else{
									if(i==17){
										this.BORRSmall.setVisible(true);
									}else{
										if(i==18){
											this.AtlanticAveSmall.setVisible(true);
										}else{
											if(i==19){
												this.VentorAveSmall.setVisible(true);
											}else{
												if(i==20){
													this.WWSmall.setVisible(true);
												}else{
													if(i==21){
														this.MarvinGardensSmall.setVisible(true);
													}else{
														if(i==22){
															this.PacificAveSmall.setVisible(true);
														}else{
															if(i==23){
																this.NthCaroSmall.setVisible(true);
															}else{
																if(i==24){
																	this.PensAveSmall.setVisible(true);
																}else{
																	if(i==25){
																		this.ShortLineSmall.setVisible(true);
																	}else{
																		if(i==26){
																			this.ParkPlaceSmall.setVisible(true);
																		}else{
																			if(i==27){
																				this.BoardWalkSmall.setVisible(true);
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
						
					}
					}
			}
			}
			
			int Pturn = board.getTurn() + 1;
			int money = players[board.getTurn()].getMoney();
			String money1 = String.valueOf(money);
			Player.setText(players[board.getTurn()].getName());
			int singlemoney2 = players[0].getMoney();
			String money2 = String.valueOf(singlemoney2);

			if (players.length != 1) {
				moneyLabel.setText(" $ " + money1);
			} else {
				moneyLabel.setText(" $ " + money2);
			}
		

		}

	}

	// O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//O.o//
	public void run() {

		int y = 0;
		int checker = 0;
		try {
			Thread.sleep(1500);
			this.MrMonopoly.setVisible(false);
			Dice1A.setVisible(false);
			Dice1B.setVisible(false);
			Dice2A.setVisible(false);
			Dice2B.setVisible(false);
			Dice3A.setVisible(false);
			Dice3B.setVisible(false);
			Dice4A.setVisible(false);
			Dice4B.setVisible(false);
			Dice5A.setVisible(false);
			Dice5B.setVisible(false);
			Dice6A.setVisible(false);
			Dice6B.setVisible(false);
		}catch(Exception e){}
		
		if(players[board.getTurn()].getIsJail()==false){
			try {
				
				if (players[board.getTurn()].getToken() == 1) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						carToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}
				if (players[board.getTurn()].getToken() == 2) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						hatToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}
				if (players[board.getTurn()].getToken() == 3) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						bellToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}
				if (players[board.getTurn()].getToken() == 4) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						dogToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}
				if (players[board.getTurn()].getToken() == 5) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						shoeToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}
				if (players[board.getTurn()].getToken() == 6) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						shipToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}
				if (players[board.getTurn()].getToken() == 7) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						lagayanbatoToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}
				if (players[board.getTurn()].getToken() == 8) {
					for (int i = players[board.getTurn()].getPrevPostition(); i != players[board
							.getTurn()].getPosition(); i++) {
						Thread.sleep(500);
						if (i == 39) {
							i = -1;
						}
						planchaToken.setLocation(tile[i + 1].getX(),
								tile[i + 1].getY());
					}
				}

			} catch (Exception e) {}

			if (board.sendToJail() == true) {
				
				try {
					if (players[board.getTurn()].getToken() == 1) {
				
							carToken.setLocation(tile[10].getX(),tile[10].getY());
						}
					
					if (players[board.getTurn()].getToken() == 2) {

							hatToken.setLocation(tile[10].getX(),tile[10].getY());

						}
					
					if (players[board.getTurn()].getToken() == 3) {

							bellToken.setLocation(tile[10].getX(),tile[10].getY());

					}
					if (players[board.getTurn()].getToken() == 4) {

							dogToken.setLocation(tile[10].getX(),tile[10].getY());

					}
					if (players[board.getTurn()].getToken() == 5) {

							shoeToken.setLocation(tile[10].getX(),tile[10].getY());

					}
					if (players[board.getTurn()].getToken() == 6) {

							shipToken.setLocation(tile[10].getX(),tile[10].getY());

					}
					if (players[board.getTurn()].getToken() == 7) {

							lagayanbatoToken.setLocation(tile[10].getX(),tile[10].getY());

					}
					if (players[board.getTurn()].getToken() == 8) {

							planchaToken.setLocation(tile[10].getX(),tile[10].getY());

					}
					players[board.getTurn()].setJail(true);
					
				} catch (Exception e) {}
				}
			
			
			try {
			
					Thread.sleep(350);
					trade.setVisible(true);
					rollDiceOk.setVisible(true);
					BuyTittle.setVisible(true);
					this.MedAveCard.setVisible(false);
					this.BalticAvecard.setVisible(false);
					this.RRCard.setVisible(false);
					this.OrientalAvecard.setVisible(false);
					this.VermontAveCard.setVisible(false);
					this.ConneticutAveCard.setVisible(false);
					this.CharlseCard.setVisible(false);
					this.ElecCompCard.setVisible(false);
					this.StatesAveCard.setVisible(false);
					this.VirginiaAveCard.setVisible(false);
					this.PensRRCard.setVisible(false);
					this.JamesCard.setVisible(false);
					this.TennesseAveCard.setVisible(false);
					this.NewYorkAveCard.setVisible(false);
					this.KentuckyAveCard.setVisible(false);
					this.IndianaAveCard.setVisible(false);
					this.IllinoisAveCard.setVisible(false);
					this.BORRCard.setVisible(false);
					this.AtlanticAveCard.setVisible(false);
					this.VentorAveCard.setVisible(false);
					this.WWCard.setVisible(false);
					this.MarvinGardenCard.setVisible(false);
					this.PacificAvecard.setVisible(false);
					this.NthCaroCard.setVisible(false);
					this.PensAvecard.setVisible(false);
					this.ShortLineCard.setVisible(false);
					this.ParkPlacecard.setVisible(false);
					this.BoardWalkcard.setVisible(false);
					if(players[board.getTurn()].getPosition()==1&&deeds[0].getOwner()=="NONE"){
						this.MedAveCard.setVisible(true);
					}else{
						if(players[board.getTurn()].getPosition()==3&&deeds[1].getOwner()=="NONE"){
							this.BalticAvecard.setVisible(true);
						}else{
							if(players[board.getTurn()].getPosition()==5&&deeds[2].getOwner()=="NONE"){
								this.RRCard.setVisible(true);
							}else{
								if(players[board.getTurn()].getPosition()==6&&deeds[3].getOwner()=="NONE"){
									this.OrientalAvecard.setVisible(true);
								}else{
									if(players[board.getTurn()].getPosition()==8&&deeds[4].getOwner()=="NONE"){
										this.VermontAveCard.setVisible(true);
									}else{
										if(players[board.getTurn()].getPosition()==9&&deeds[5].getOwner()=="NONE"){
											this.ConneticutAveCard.setVisible(true);
										}else{
											if(players[board.getTurn()].getPosition()==11&&deeds[6].getOwner()=="NONE"){
												this.CharlseCard.setVisible(true);
											}else{
												if(players[board.getTurn()].getPosition()==12&&deeds[7].getOwner()=="NONE"){
													this.ElecCompCard.setVisible(true);
												}else{
													if(players[board.getTurn()].getPosition()==13&&deeds[8].getOwner()=="NONE"){
														this.StatesAveCard.setVisible(true);
													}else{
														if(players[board.getTurn()].getPosition()==14&&deeds[9].getOwner()=="NONE"){
															this.VirginiaAveCard.setVisible(true);
														}else{
															if(players[board.getTurn()].getPosition()==15&&deeds[10].getOwner()=="NONE"){
																this.PensRRCard.setVisible(true);
															}else{
																if(players[board.getTurn()].getPosition()==16&&deeds[11].getOwner()=="NONE"){
																	this.JamesCard.setVisible(true);
																}else{
																	if(players[board.getTurn()].getPosition()==18&&deeds[12].getOwner()=="NONE"){
																		this.TennesseAveCard.setVisible(true);
																	}else{
																		if(players[board.getTurn()].getPosition()==19&&deeds[13].getOwner()=="NONE"){
																			this.IndianaAveCard.setVisible(true);
																		}else{
																			if(players[board.getTurn()].getPosition()==21&&deeds[14].getOwner()=="NONE"){
																				this.KentuckyAveCard.setVisible(true);
																			}else{
																				if(players[board.getTurn()].getPosition()==23&&deeds[15].getOwner()=="NONE"){
																					this.IndianaAveCard.setVisible(true);
																				}else{
																					if(players[board.getTurn()].getPosition()==24&&deeds[16].getOwner()=="NONE"){
																						this.IllinoisAveCard.setVisible(true);
																					}else{
																						if(players[board.getTurn()].getPosition()==25&&deeds[17].getOwner()=="NONE"){
																							this.BORRCard.setVisible(true);
																						}else{
																							if(players[board.getTurn()].getPosition()==26&&deeds[18].getOwner()=="NONE"){
																								this.AtlanticAveCard.setVisible(true);
																							}else{
																								if(players[board.getTurn()].getPosition()==27&&deeds[19].getOwner()=="NONE"){
																									this.VentorAveCard.setVisible(true);
																									System.out.println("ASD");
																								}else{
																									if(players[board.getTurn()].getPosition()==28&&deeds[20].getOwner()=="NONE"){
																										this.WWCard.setVisible(true);
																									}else{
																										if(players[board.getTurn()].getPosition()==29&&deeds[21].getOwner()=="NONE"){
																											this.MarvinGardenCard.setVisible(true);
																										}else{
																											if(players[board.getTurn()].getPosition()==31&&deeds[22].getOwner()=="NONE"){
																												this.PacificAvecard.setVisible(true);
																											}else{
																												if(players[board.getTurn()].getPosition()==32&&deeds[23].getOwner()=="NONE"){
																													this.NthCaroCard.setVisible(true);
																												}else{
																													if(players[board.getTurn()].getPosition()==34&&deeds[24].getOwner()=="NONE"){
																														this.PensAvecard.setVisible(true);
																													}else{
																														if(players[board.getTurn()].getPosition()==35&&deeds[25].getOwner()=="NONE"){
																															this.ShortLineCard.setVisible(true);
																														}else{
																															if(players[board.getTurn()].getPosition()==37&&deeds[26].getOwner()=="NONE"){
																																this.ParkPlacecard.setVisible(true);
																															}else{
																																if(players[board.getTurn()].getPosition()==39&&deeds[27].getOwner()=="NONE"){
																																	this.BoardWalkcard.setVisible(true);
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
					

					
					
					if(players[board.getTurn()].getPosition()==2||players[board.getTurn()].getPosition()==17||players[board.getTurn()].getPosition()==33){
						int cardNum;
						Random random = new Random();
						do{
						 cardNum = random.nextInt(16);
						}while(cardNum==0);
						if(cardNum==1){
							Com1.setVisible(true);
						}else{
							if(cardNum==2){
								Com2.setVisible(true);
							}else{
								if(cardNum==3){
									Com3.setVisible(true);
								}else{
									if(cardNum==4){
										Com4.setVisible(true);
									}else{
										if(cardNum==5){
											Com5.setVisible(true);
										}else{
											if(cardNum==6){
												Com6.setVisible(true);
											}else{
												if(cardNum==7){
													Com7.setVisible(true);
												}else{
													if(cardNum==8){
														Com8.setVisible(true);
													}else{
														if(cardNum==9){
															Com9.setVisible(true);
														}else{
															if(cardNum==10){
																Com10.setVisible(true);
															}else{
																if(cardNum==11){
																	Com11.setVisible(true);
																}else{
																	if(cardNum==12){
																		Com12.setVisible(true);
																	}else{
																		if(cardNum==13){
																			Com13.setVisible(true);
																		}else{
																			if(cardNum==14){
																				Com14.setVisible(true);
																			}else{
																				if(cardNum==15){
																					Com15.setVisible(true);
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
						
						board.Community(cardNum);
						
					}else{
						if(players[board.getTurn()].getPosition()==7||players[board.getTurn()].getPosition()==22||players[board.getTurn()].getPosition()==36){
							int cardNum;
							Random random = new Random();
							do{
							 cardNum = 8;//random.nextInt(18);
							}while(cardNum==0);
							if(cardNum==1){
								Chance1.setVisible(true);
							}else{
								if(cardNum==2){
									if(players[board.getTurn()].getToken()==1){
										this.carToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									if(players[board.getTurn()].getToken()==2){
										this.hatToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									if(players[board.getTurn()].getToken()==3){
										this.bellToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									if(players[board.getTurn()].getToken()==4){
										this.dogToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									if(players[board.getTurn()].getToken()==5){
										this.shoeToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									if(players[board.getTurn()].getToken()==6){
										this.shipToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									if(players[board.getTurn()].getToken()==7){
										this.lagayanbatoToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									if(players[board.getTurn()].getToken()==8){
										this.planchaToken.setLocation(tile[39].getX(), tile[39].getY());
										players[board.getTurn()].setPosition2(39);
									}
									Chance2.setVisible(true);
								}else{
									if(cardNum==3){
										if(players[board.getTurn()].getToken()==1){
											this.carToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										if(players[board.getTurn()].getToken()==2){
											this.hatToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										if(players[board.getTurn()].getToken()==3){
											this.bellToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										if(players[board.getTurn()].getToken()==4){
											this.dogToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										if(players[board.getTurn()].getToken()==5){
											this.shoeToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										if(players[board.getTurn()].getToken()==6){
											this.shipToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										if(players[board.getTurn()].getToken()==7){
											this.lagayanbatoToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										if(players[board.getTurn()].getToken()==8){
											this.planchaToken.setLocation(tile[24].getX(), tile[24].getY());
											players[board.getTurn()].setPosition2(24);
										}
										Chance3.setVisible(true);
									}else{
										if(cardNum==4){
											Chance4.setVisible(true);
										}else{
											if(cardNum==5){
												Chance5.setVisible(true);
											}else{
												if(cardNum==6){
													if(players[board.getTurn()].getToken()==1){
														this.carToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													if(players[board.getTurn()].getToken()==2){
														this.hatToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													if(players[board.getTurn()].getToken()==3){
														this.bellToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													if(players[board.getTurn()].getToken()==4){
														this.dogToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													if(players[board.getTurn()].getToken()==5){
														this.shoeToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													if(players[board.getTurn()].getToken()==6){
														this.shipToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													if(players[board.getTurn()].getToken()==7){
														this.lagayanbatoToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													if(players[board.getTurn()].getToken()==8){
														this.planchaToken.setLocation(tile[39].getX(), tile[39].getY());
														players[board.getTurn()].setPosition2(39);
													}
													Chance6.setVisible(true);
												}else{
													if(cardNum==7){
														Chance7.setVisible(true);
													}else{
														if(cardNum==8){
															if(players[board.getTurn()].getPosition()>11){
																players[board.getTurn()].setMoney(200);
															}
															if(players[board.getTurn()].getToken()==1){
																this.carToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															if(players[board.getTurn()].getToken()==2){
																this.hatToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															if(players[board.getTurn()].getToken()==3){
																this.bellToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															if(players[board.getTurn()].getToken()==4){
																this.dogToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															if(players[board.getTurn()].getToken()==5){
																this.shoeToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															if(players[board.getTurn()].getToken()==6){
																this.shipToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															if(players[board.getTurn()].getToken()==7){
																this.lagayanbatoToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															if(players[board.getTurn()].getToken()==8){
																this.planchaToken.setLocation(tile[11].getX(), tile[11].getY());
																players[board.getTurn()].setPosition2(11);
															}
															Chance8.setVisible(true);
														}else{
															if(cardNum==9){
																Chance9.setVisible(true);
															}else{
																if(cardNum==10){
																	Chance10.setVisible(true);
																}else{
																	if(cardNum==11){
																		if(players[board.getTurn()].getPosition()>5){
																			players[board.getTurn()].setMoney(200);
																		}
																		if(players[board.getTurn()].getToken()==1){
																			this.carToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		if(players[board.getTurn()].getToken()==2){
																			this.hatToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		if(players[board.getTurn()].getToken()==3){
																			this.bellToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		if(players[board.getTurn()].getToken()==4){
																			this.dogToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		if(players[board.getTurn()].getToken()==5){
																			this.shoeToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		if(players[board.getTurn()].getToken()==6){
																			this.shipToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		if(players[board.getTurn()].getToken()==7){
																			this.lagayanbatoToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		if(players[board.getTurn()].getToken()==8){
																			this.planchaToken.setLocation(tile[5].getX(), tile[5].getY());
																			players[board.getTurn()].setPosition2(5);
																		}
																		Chance11.setVisible(true);
																	}else{
																		if(cardNum==12){
																			Chance12.setVisible(true);
																		}else{
																			if(cardNum==13){
																				Chance13.setVisible(true);
																			}else{
																				if(cardNum==14){
																					Chance14.setVisible(true);
																				}else{
																					if(cardNum==15){
																						Chance15.setVisible(true);
																					}else{
																						if(cardNum==16){
																							Chance16.setVisible(true);
																						}else{
																							if(cardNum==17){
																								Chance17.setVisible(true);
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
							
							board.Chance(cardNum);
						}
					}
					
					
					players[board.getTurn()].rent();
			} catch (Exception e) {
			}
		}else{
			try {
			
				trade.setVisible(true);
				rollDiceOk.setVisible(true);
				BuyTittle.setVisible(true);
				players[board.getTurn()].setGetOutOfJail(-1);
		} catch (Exception e) {
		}
			
		}
	}

	public static void moveMusic() {
		ContinuousAudioDataStream CAD = null;

		AudioStream aStream;
		AudioData aData;
		InputStream iStream;
		try {

			iStream = new FileInputStream("musics/move.wav");
			aStream = new AudioStream(iStream);
			AudioPlayer.player.start(aStream);

		} catch (Exception e) {

		}
	}

	public static void BGmusic() {
		ContinuousAudioDataStream CAD = null;

		AudioStream aStream;
		AudioData aData;
		InputStream iStream;
		try {

			iStream = new FileInputStream("musics/button.wav");
			aStream = new AudioStream(iStream);
			AudioPlayer.player.start(aStream);

		} catch (Exception e) {

		}

	}

}
